@@ -25,8 +25,8 class WikiContent < ActiveRecord::Base | |||||
25 |
|
25 | |||
26 | acts_as_versioned |
|
26 | acts_as_versioned | |
27 | class Version |
|
27 | class Version | |
28 | belongs_to :page, :class_name => 'WikiPage', :foreign_key => 'page_id' |
|
28 | belongs_to :page, :class_name => '::WikiPage', :foreign_key => 'page_id' | |
29 | belongs_to :author, :class_name => 'User', :foreign_key => 'author_id' |
|
29 | belongs_to :author, :class_name => '::User', :foreign_key => 'author_id' | |
30 | attr_protected :data |
|
30 | attr_protected :data | |
31 |
|
31 | |||
32 | acts_as_event :title => Proc.new {|o| "#{l(:label_wiki_edit)}: #{o.page.title} (##{o.version})"}, |
|
32 | acts_as_event :title => Proc.new {|o| "#{l(:label_wiki_edit)}: #{o.page.title} (##{o.version})"}, |
General Comments 0
You need to be logged in to leave comments.
Login now