]> source.dussan.org Git - redmine.git/commitdiff
removed project_id presence validation on wiki model which was failing when creating...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 14 Mar 2007 17:23:38 +0000 (17:23 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 14 Mar 2007 17:23:38 +0000 (17:23 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@335 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/wiki.rb

index d99e757e5a8f30d607217375f6ad3aff2991ec7c..e362273ae9b14aafa382423cf162b6146c1a0228 100644 (file)
@@ -19,7 +19,7 @@ class Wiki < ActiveRecord::Base
   belongs_to :project
   has_many :pages, :class_name => 'WikiPage', :dependent => :destroy
   
-  validates_presence_of :project_id, :start_page
+  validates_presence_of :start_page
   
   # find the page with the given title
   # if page doesn't exist, return a new page