From d353cd556cd63da1b60600bb8a6ab38ca7f09f1c Mon Sep 17 00:00:00 2001 From: Pete Higgins Date: Thu, 23 Feb 2012 00:29:46 -0800 Subject: Don't need to specify class names here. --- app/models/refinery/blog/comment.rb | 4 ++-- app/models/refinery/blog/post.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'app') diff --git a/app/models/refinery/blog/comment.rb b/app/models/refinery/blog/comment.rb index 9187306..3675e46 100644 --- a/app/models/refinery/blog/comment.rb +++ b/app/models/refinery/blog/comment.rb @@ -8,7 +8,7 @@ module Refinery :email_field => :email, :message_field => :body - belongs_to :post, :class_name => 'Refinery::Blog::Post', :foreign_key => 'blog_post_id' + belongs_to :post, :foreign_key => 'blog_post_id' acts_as_indexed :fields => [:name, :email, :message] @@ -132,4 +132,4 @@ module Refinery end end -end \ No newline at end of file +end diff --git a/app/models/refinery/blog/post.rb b/app/models/refinery/blog/post.rb index 6873243..75911b9 100644 --- a/app/models/refinery/blog/post.rb +++ b/app/models/refinery/blog/post.rb @@ -11,7 +11,7 @@ module Refinery belongs_to :author, :class_name => 'Refinery::User', :foreign_key => :user_id, :readonly => true - has_many :comments, :class_name => 'Refinery::Blog::Comment', :dependent => :destroy, :foreign_key => :blog_post_id + has_many :comments, :dependent => :destroy, :foreign_key => :blog_post_id acts_as_taggable has_many :categorizations, :dependent => :destroy, :foreign_key => :blog_post_id -- cgit v1.2.3