From 42d9db526d3aef2e08848d6bc587feaf3700db42 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 7 Jul 2018 16:23:04 -0400 Subject: Added tags Blogs and streams can now be tagged. Records now show the appropriate tags for an entry. Updates work oddly, because their records show the stream's tags, since updates do not have tags themselves. refs #2 --- app/models/stream.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/models/stream.rb') diff --git a/app/models/stream.rb b/app/models/stream.rb index 1398b75..0773143 100644 --- a/app/models/stream.rb +++ b/app/models/stream.rb @@ -1,6 +1,8 @@ class Stream < ApplicationRecord include Recordable + acts_as_taggable + has_many :updates validates :title, presence: true @@ -9,4 +11,8 @@ class Stream < ApplicationRecord def path "/thinks/#{slug}" end + + def taggable + self + end end -- cgit 1.4.1