diff options
| author | cedricnjanga | 2017-09-19 15:22:55 +0200 | 
|---|---|---|
| committer | cedricnjanga | 2017-09-19 15:27:58 +0200 | 
| commit | 5ffc337dfc86017840a5402058d490fd20d29bf4 (patch) | |
| tree | dbe6f7290ea86baacec1c49033d0e16ac6db9606 /app/models/journey_pattern_control | |
| parent | faa11cd4dcde1fafb92c5b5a99be4d3fe356e8f0 (diff) | |
| download | chouette-core-5ffc337dfc86017840a5402058d490fd20d29bf4.tar.bz2 | |
Add the rest of the other compliance control models
Diffstat (limited to 'app/models/journey_pattern_control')
| -rw-r--r-- | app/models/journey_pattern_control/duplicates.rb | 13 | 
1 files changed, 13 insertions, 0 deletions
diff --git a/app/models/journey_pattern_control/duplicates.rb b/app/models/journey_pattern_control/duplicates.rb new file mode 100644 index 000000000..78ca07e90 --- /dev/null +++ b/app/models/journey_pattern_control/duplicates.rb @@ -0,0 +1,13 @@ +module JourneyPatternControl +  class Duplicates < ComplianceControl + +    @@default_criticity = :warning +    @@default_code = "3-JourneyPattern-1" + +    after_initialize do +      self.name = self.class.name +      self.code = @@default_code +      self.criticity = @@default_criticity +    end +  end +end  | 
