summaryrefslogtreecommitdiff
path: root/app/models/gs_parameter.rb
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-09 12:39:24 +0100
committerspag <spag@golwen.net>2013-01-09 12:39:24 +0100
commitc05c78f1eaa2cbfff68f15287d6bb62cdd6f3a54 (patch)
treec3a5de890afe813580e976e18f1b89016d9aabe1 /app/models/gs_parameter.rb
parent9ea7d243a26937325e55564182587be4747f9070 (diff)
allow empty strings and nil values
Diffstat (limited to 'app/models/gs_parameter.rb')
-rw-r--r--app/models/gs_parameter.rb3
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'] }