summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-09 11:08:49 +0100
committerspag <spag@golwen.net>2013-01-09 11:08:49 +0100
commitaf1a7678582e2e629ed4c8c06528b9a62bf62242 (patch)
tree944e23c10bed64e6acfa4891f3c0318cce8a34f3 /app
parentd968c1f9a6933c3e5d2b2f16d38d656edb6fe152 (diff)
entity added to GsParameter
Diffstat (limited to 'app')
-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