Added several validates_length_of

git-svn-id: http://redmine.rubyforge.org/svn/trunk@593 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2007-07-16 17:16:49 +00:00
parent 7363428703
commit fcefdb22bf
11 changed files with 14 additions and 1 deletions
+1
View File
@@ -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,