diff options
| author | Robert | 2017-09-29 18:23:56 +0200 | 
|---|---|---|
| committer | Robert | 2017-10-02 10:52:07 +0200 | 
| commit | 1bc4ab6684803a3974bd65f6531bd43a57c15fd0 (patch) | |
| tree | bc30e8698ada3f660633adbd28e88083f39896a6 /app/models | |
| parent | f034dc2999a56295178c64921e6f059adc1a7bd9 (diff) | |
| download | chouette-core-1bc4ab6684803a3974bd65f6531bd43a57c15fd0.tar.bz2 | |
Refs: #4627@2h;
        Comprehensive Tests for ComplianceControl Class Level Default Attributes
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/compliance_control.rb | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/app/models/compliance_control.rb b/app/models/compliance_control.rb index 7317b81b8..0763de477 100644 --- a/app/models/compliance_control.rb +++ b/app/models/compliance_control.rb @@ -32,6 +32,9 @@ class ComplianceControl < ActiveRecord::Base     self.name ||= self.class.name     self.code ||= @@default_code     self.origin_code ||= @@default_code +   # TODO: Remove this very ambigous line, as a matter of fact it is never triggered +   # **unless** `criticity` is **explicitly** set to nil, thusly bypassing the att's +   # initialisation by `Enumerize`'s default.     self.criticity ||= @@default_criticity    end | 
