aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/generic_attribute_uniqueness.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/generic_attribute_uniqueness.rb')
-rw-r--r--app/models/generic_attribute_uniqueness.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/app/models/generic_attribute_uniqueness.rb b/app/models/generic_attribute_uniqueness.rb
new file mode 100644
index 000000000..dcf4a16c2
--- /dev/null
+++ b/app/models/generic_attribute_uniqueness.rb
@@ -0,0 +1,23 @@
+#module ComplianceControls
+
+ class GenericAttributeUniqueness < ComplianceControl
+
+ hstore_accessor :control_attributes, name: :string
+
+ @@default_criticity = :warning
+ @@default_code = "3-Generic-3"
+
+ validate :unique_values
+ def unique_values
+ true
+ end
+
+ after_initialize do
+ self.name = 'GenericAttributeMinMax'
+ self.code = @@default_code
+ self.criticity = @@default_criticity
+ end
+
+ end
+
+#end \ No newline at end of file