diff options
author | Joe Sak <joe@joesak.com> | 2011-02-24 21:38:24 -0600 |
---|---|---|
committer | Joe Sak <joe@joesak.com> | 2011-02-24 21:38:24 -0600 |
commit | e218c8fc5bb5084d50b0be4b01dc83ca51decca0 (patch) | |
tree | eaf150bf18788f9c32d246b1d7534d52ff2bc111 /app | |
parent | 56df60d80a7f5d3a26dbf25689fb118eeacca24d (diff) | |
download | refinerycms-blog-e218c8fc5bb5084d50b0be4b01dc83ca51decca0.tar.gz refinerycms-blog-e218c8fc5bb5084d50b0be4b01dc83ca51decca0.tar.bz2 refinerycms-blog-e218c8fc5bb5084d50b0be4b01dc83ca51decca0.zip |
just a lil' reminder
Diffstat (limited to 'app')
-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 |