removed project_id presence validation on wiki model which was failing when creating a project with a wiki

git-svn-id: http://redmine.rubyforge.org/svn/trunk@335 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-03-14 17:23:38 +00:00
parent 85f32b956f
commit 56d0af472d
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class Wiki < ActiveRecord::Base
belongs_to :project belongs_to :project
has_many :pages, :class_name => 'WikiPage', :dependent => :destroy 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 # find the page with the given title
# if page doesn't exist, return a new page # if page doesn't exist, return a new page