aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2011-02-24 22:28:04 -0600
committerJoe Sak <joe@joesak.com>2011-02-24 22:28:04 -0600
commit0455eb155e6c3928964a64052194ab4298fd032e (patch)
treeb62cf39743e40d98d1bf612a1824590be603bacb /app
parentd23c10db7029cbcfd168d0ced50a72957d1fad8a (diff)
downloadrefinerycms-blog-0455eb155e6c3928964a64052194ab4298fd032e.tar.gz
refinerycms-blog-0455eb155e6c3928964a64052194ab4298fd032e.tar.bz2
refinerycms-blog-0455eb155e6c3928964a64052194ab4298fd032e.zip
Wrong syntax for AR association
Diffstat (limited to 'app')
-rw-r--r--app/models/blog_post.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/blog_post.rb b/app/models/blog_post.rb
index 0dd1246..110a455 100644
--- a/app/models/blog_post.rb
+++ b/app/models/blog_post.rb
@@ -2,7 +2,7 @@ class BlogPost < ActiveRecord::Base
default_scope :order => 'published_at DESC'
- belongs_to :author, :foreign_key => 'user_id'
+ belongs_to :author, :class_name => 'User', :foreign_key => :user_id
has_many :comments, :class_name => 'BlogComment', :dependent => :destroy