diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-06-17 19:32:58 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-06-17 19:32:58 +0000 |
commit | 5332c4362cdf7c98a281d88409a07b24767dc2d2 (patch) | |
tree | ac0d0a1061e4b0ff8a86bb1f5170701dbb21882f /app/models | |
parent | f2acb56041b997812f4a2dc2e7258a16572df7d1 (diff) | |
download | redmine-5332c4362cdf7c98a281d88409a07b24767dc2d2.tar.gz redmine-5332c4362cdf7c98a281d88409a07b24767dc2d2.zip |
Added page association on versioned WikiContent
git-svn-id: http://redmine.rubyforge.org/svn/trunk@565 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/wiki_content.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/wiki_content.rb b/app/models/wiki_content.rb index 5b2e7c34e..2d0be8225 100644 --- a/app/models/wiki_content.rb +++ b/app/models/wiki_content.rb @@ -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 |