summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/gs_parameter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/gs_parameter.rb b/app/models/gs_parameter.rb
index 9d9e996..de09df6 100644
--- a/app/models/gs_parameter.rb
+++ b/app/models/gs_parameter.rb
@@ -1,9 +1,9 @@
class GsParameter < ActiveRecord::Base
- attr_accessible :name, :section, :value, :class_type, :description
+ attr_accessible :entity, :name, :section, :value, :class_type, :description
validates :name,
:presence => true,
- :uniqueness => true
+ :uniqueness => { :scope => [ :entity, :section ] }
validates :value,
:presence => true