diff options
| author | Luc Donnet | 2017-09-21 09:38:12 +0200 |
|---|---|---|
| committer | Luc Donnet | 2017-09-21 09:38:12 +0200 |
| commit | 7ec5867ec7bd7365bb4c97d7d4c1bdc2cf580bc2 (patch) | |
| tree | 05a9a14e9acacdf4ec47f04d620aa336570fa533 /app/models/generic_attribute_pattern.rb | |
| parent | d62e303b9cae0f4c2e1e5075e4135faa24dd4460 (diff) | |
| parent | 5c63e10c3f576254d28a2bfff0b5dbbd0dd8e2d5 (diff) | |
| download | chouette-core-7ec5867ec7bd7365bb4c97d7d4c1bdc2cf580bc2.tar.bz2 | |
Merge branch 'master' of github.com:AF83/stif-boiv
Diffstat (limited to 'app/models/generic_attribute_pattern.rb')
| -rw-r--r-- | app/models/generic_attribute_pattern.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/app/models/generic_attribute_pattern.rb b/app/models/generic_attribute_pattern.rb new file mode 100644 index 000000000..0043f1563 --- /dev/null +++ b/app/models/generic_attribute_pattern.rb @@ -0,0 +1,23 @@ +#module ComplianceControls + + class GenericAttributePattern < ComplianceControl + + hstore_accessor :control_attributes, value: :string, pattern: :string + + @@default_criticity = :warning + @@default_code = "3-Generic-3" + + validate :pattern_match + def pattern_match + 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 |
