diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/blog_post.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/blog_post.rb b/app/models/blog_post.rb index 738d25c..c9e93bf 100644 --- a/app/models/blog_post.rb +++ b/app/models/blog_post.rb @@ -8,7 +8,7 @@ class BlogPost < ActiveRecord::Base default_scope :order => 'published_at DESC' #.first & .last will be reversed -- consider a with_exclusive_scope on these? - belongs_to :author, :class_name => 'User', :foreign_key => :user_id + belongs_to :author, :class_name => 'User', :foreign_key => :user_id, :readonly => true has_many :comments, :class_name => 'BlogComment', :dependent => :destroy acts_as_taggable |