summaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-06-17 19:32:58 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-06-17 19:32:58 +0000
commit5332c4362cdf7c98a281d88409a07b24767dc2d2 (patch)
treeac0d0a1061e4b0ff8a86bb1f5170701dbb21882f /app/models
parentf2acb56041b997812f4a2dc2e7258a16572df7d1 (diff)
downloadredmine-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.rb1
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