Added page association on versioned WikiContent
git-svn-id: http://redmine.rubyforge.org/svn/trunk@565 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f2acb56041
commit
5332c4362c
|
@ -25,6 +25,7 @@ class WikiContent < ActiveRecord::Base
|
|||
|
||||
acts_as_versioned
|
||||
class Version
|
||||
belongs_to :page, :class_name => 'WikiPage', :foreign_key => 'page_id'
|
||||
belongs_to :author, :class_name => 'User', :foreign_key => 'author_id'
|
||||
attr_protected :data
|
||||
|
||||
|
|
Loading…
Reference in New Issue