summaryrefslogtreecommitdiffstats
path: root/app/models/wiki.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-03-14 17:23:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-03-14 17:23:38 +0000
commit56d0af472d628375b263175ef5920031b815fc7e (patch)
tree5594ab34ef3492b6f13dc43ce2b4329e243533f4 /app/models/wiki.rb
parent85f32b956fe59235a2d017b6648dd3407b01cc64 (diff)
downloadredmine-56d0af472d628375b263175ef5920031b815fc7e.tar.gz
redmine-56d0af472d628375b263175ef5920031b815fc7e.zip
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
Diffstat (limited to 'app/models/wiki.rb')
-rw-r--r--app/models/wiki.rb2
1 files changed, 1 insertions, 1 deletions
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