diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/gs_parameter.rb | 4 |
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 |