just a lil' reminder
This commit is contained in:
parent
56df60d80a
commit
e218c8fc5b
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue