]> source.dussan.org Git - redmine.git/commitdiff
Added page association on versioned WikiContent
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 17 Jun 2007 19:32:58 +0000 (19:32 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 17 Jun 2007 19:32:58 +0000 (19:32 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@565 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/wiki_content.rb

index 5b2e7c34e8b7d362ad962fac678a6a79273e2d52..2d0be8225c644ba0bbf367c0aa42612c1ad7d2d0 100644 (file)
@@ -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