summaryrefslogtreecommitdiffstats
path: root/app/models/query.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-07-16 17:16:49 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-07-16 17:16:49 +0000
commitfcefdb22bfc3a270e213e289c562bea0bd8722ef (patch)
tree17b14373e732950cc918883df746e89a33d1373d /app/models/query.rb
parent7363428703e4a86c3c7b20e5adc00e9ae9428b2e (diff)
downloadredmine-fcefdb22bfc3a270e213e289c562bea0bd8722ef.tar.gz
redmine-fcefdb22bfc3a270e213e289c562bea0bd8722ef.zip
Added several validates_length_of
git-svn-id: http://redmine.rubyforge.org/svn/trunk@593 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/query.rb')
-rw-r--r--app/models/query.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/query.rb b/app/models/query.rb
index b64143674..88946655f 100644
--- a/app/models/query.rb
+++ b/app/models/query.rb
@@ -24,6 +24,7 @@ class Query < ActiveRecord::Base
attr_accessor :executed_by
validates_presence_of :name, :on => :save
+ validates_length_of :name, :maximum => 255
@@operators = { "=" => :label_equals,
"!" => :label_not_equals,