app/models/cms/page_workflow.rb in cms-fortress-1.1.8 vs app/models/cms/page_workflow.rb in cms-fortress-1.2.0
- old
+ new
@@ -1,8 +1,8 @@
class Cms::PageWorkflow < ActiveRecord::Base
self.table_name = 'cms_page_workflows'
- belongs_to :page, :foreign_key => 'cms_page_id'
+ belongs_to :page, :class_name => 'Comfy::Cms::Page', :foreign_key => 'cms_page_id'
after_save do |record|
record.page.update_attribute(:is_published, record.page_published?)
end