From 5332c4362cdf7c98a281d88409a07b24767dc2d2 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 17 Jun 2007 19:32:58 +0000 Subject: [PATCH] Added page association on versioned WikiContent git-svn-id: http://redmine.rubyforge.org/svn/trunk@565 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/wiki_content.rb | 1 + 1 file changed, 1 insertion(+) 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