just a lil' reminder

This commit is contained in:
Joe Sak 2011-02-24 21:38:24 -06:00
parent 56df60d80a
commit e218c8fc5b

View file

@ -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