]> source.dussan.org Git - redmine.git/commitdiff
Removed useless option.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 24 Feb 2012 18:27:38 +0000 (18:27 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 24 Feb 2012 18:27:38 +0000 (18:27 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8978 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/query.rb

index 84ab868fff21efbf2d148c088a180e2c879ca74f..9451b79fd8d02ea9b8b546c1027ed8cfdf6ff8cd 100644 (file)
@@ -94,7 +94,7 @@ class Query < ActiveRecord::Base
 
   attr_protected :project_id, :user_id
 
-  validates_presence_of :name, :on => :save
+  validates_presence_of :name
   validates_length_of :name, :maximum => 255
   validate :validate_query_filters