diff options
-rw-r--r-- | app/models/blog_post.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/blog_post.rb b/app/models/blog_post.rb index 679a21c..3a51530 100644 --- a/app/models/blog_post.rb +++ b/app/models/blog_post.rb @@ -1,7 +1,8 @@ class BlogPost < ActiveRecord::Base default_scope :order => 'published_at DESC' - + #.first & .last will be reversed -- consider a with_exclusive_scope on these? + has_many :comments, :class_name => 'BlogComment', :dependent => :destroy has_many :categorizations |