summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-24 18:27:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-24 18:27:38 +0000
commit67d816705d23184a0d1fdbd9687926055041e280 (patch)
treef448d8314d345788cc545fc029e941375cdd8222
parent528735b955abd70aa76eefdfa9929447679f3b89 (diff)
downloadredmine-67d816705d23184a0d1fdbd9687926055041e280.tar.gz
redmine-67d816705d23184a0d1fdbd9687926055041e280.zip
Removed useless option.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8978 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/models/query.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/query.rb b/app/models/query.rb
index 84ab868ff..9451b79fd 100644
--- a/app/models/query.rb
+++ b/app/models/query.rb
@@ -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