Don't need to specify class names here.
This commit is contained in:
parent
5eaad8997f
commit
d353cd556c
2 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@ module Refinery
|
||||||
:email_field => :email,
|
:email_field => :email,
|
||||||
:message_field => :body
|
: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]
|
acts_as_indexed :fields => [:name, :email, :message]
|
||||||
|
|
||||||
|
@ -132,4 +132,4 @@ module Refinery
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -11,7 +11,7 @@ module Refinery
|
||||||
|
|
||||||
belongs_to :author, :class_name => 'Refinery::User', :foreign_key => :user_id, :readonly => true
|
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
|
acts_as_taggable
|
||||||
|
|
||||||
has_many :categorizations, :dependent => :destroy, :foreign_key => :blog_post_id
|
has_many :categorizations, :dependent => :destroy, :foreign_key => :blog_post_id
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue