diff options
author | spag <spag@golwen.net> | 2013-01-09 12:39:24 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-01-09 12:39:24 +0100 |
commit | c05c78f1eaa2cbfff68f15287d6bb62cdd6f3a54 (patch) | |
tree | c3a5de890afe813580e976e18f1b89016d9aabe1 /app/models/gs_parameter.rb | |
parent | 9ea7d243a26937325e55564182587be4747f9070 (diff) |
allow empty strings and nil values
Diffstat (limited to 'app/models/gs_parameter.rb')
-rw-r--r-- | app/models/gs_parameter.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/app/models/gs_parameter.rb b/app/models/gs_parameter.rb index de09df6..520d07f 100644 --- a/app/models/gs_parameter.rb +++ b/app/models/gs_parameter.rb @@ -5,9 +5,6 @@ class GsParameter < ActiveRecord::Base :presence => true, :uniqueness => { :scope => [ :entity, :section ] } - validates :value, - :presence => true - validates :class_type, :presence => true, :inclusion => { :in => ['String', 'Integer', 'Boolean', 'YAML'] } |