From 56d0af472d628375b263175ef5920031b815fc7e Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 14 Mar 2007 17:23:38 +0000 Subject: 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 --- app/models/wiki.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/wiki.rb b/app/models/wiki.rb index d99e757e5..e362273ae 100644 --- a/app/models/wiki.rb +++ b/app/models/wiki.rb @@ -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 -- cgit v1.2.3