Browse files

No need to specify class_name for page association.

  • Loading branch information...
1 parent 058d088 commit e2772a8942a21354584f9ff6abbe1539a8a3dd74 @ugisozols ugisozols committed Feb 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 pages/app/models/refinery/page_part.rb
View
2 pages/app/models/refinery/page_part.rb
@@ -3,7 +3,7 @@ class PagePart < Refinery::Core::BaseModel
attr_accessible :title, :content, :position, :body, :created_at,
:updated_at, :refinery_page_id
- belongs_to :page, :class_name => '::Refinery::Page', :foreign_key => :refinery_page_id
+ belongs_to :page, :foreign_key => :refinery_page_id
validates :title, :presence => true
alias_attribute :content, :body

0 comments on commit e2772a8

Please sign in to comment.