Don't need to specify class names here.

This commit is contained in:
Pete Higgins 2012-02-23 00:29:46 -08:00
parent 5eaad8997f
commit d353cd556c
2 changed files with 3 additions and 3 deletions

View file

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

View file

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