aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/blog_post.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/blog_post.rb b/app/models/blog_post.rb
index 1132c8f..db85a70 100644
--- a/app/models/blog_post.rb
+++ b/app/models/blog_post.rb
@@ -1,3 +1,5 @@
+require 'acts-as-taggable-on'
+
class BlogPost < ActiveRecord::Base
default_scope :order => 'published_at DESC'
@@ -6,6 +8,7 @@ class BlogPost < ActiveRecord::Base
belongs_to :author, :class_name => 'User', :foreign_key => :user_id
has_many :comments, :class_name => 'BlogComment', :dependent => :destroy
+ acts_as_taggable
has_many :categorizations
has_many :categories, :through => :categorizations, :source => :blog_category