diff options
| author | Xinhui | 2017-09-22 16:07:51 +0200 | 
|---|---|---|
| committer | Xinhui | 2017-09-22 16:08:26 +0200 | 
| commit | 3a1db2a4df900d8ea5aed74bdb8dd4086c3fa551 (patch) | |
| tree | 279a51912fe7f71127f90900f71f696497fe4805 | |
| parent | 398f18621490c6f52e2f87f708f553c298a6b9ec (diff) | |
| download | chouette-core-3a1db2a4df900d8ea5aed74bdb8dd4086c3fa551.tar.bz2 | |
Remove comments
| -rw-r--r-- | app/models/generic_attribute_min_max.rb | 36 | 
1 files changed, 16 insertions, 20 deletions
| diff --git a/app/models/generic_attribute_min_max.rb b/app/models/generic_attribute_min_max.rb index e9a127c56..8e85834a8 100644 --- a/app/models/generic_attribute_min_max.rb +++ b/app/models/generic_attribute_min_max.rb @@ -1,27 +1,23 @@ -#module ComplianceControls +class GenericAttributeMinMax < ComplianceControl -  class GenericAttributeMinMax < ComplianceControl +  hstore_accessor :control_attributes, minimum: :integer, maximum: :integer +  #attribute :minimum, type: :integer, optionnal: true +  #attribute :maximum, type: :integer, optionnal: true +  #attribute :target, type: ModelAttribute -    hstore_accessor :control_attributes, minimum: :integer, maximum: :integer -    #attribute :minimum, type: :integer, optionnal: true -    #attribute :maximum, type: :integer, optionnal: true -    # #attribute :target, type: ModelAttribute +  @@default_criticity = :warning +  @@default_code = "3-Generic-2" -    @@default_criticity = :warning -    @@default_code = "3-Generic-2" - -    validate :min_max_values -    def min_max_values -      true -    end - -    after_initialize do -      self.name = 'GenericAttributeMinMax' -      self.code = @@default_code -      self.criticity = @@default_criticity -    end +  validate :min_max_values +  def min_max_values +    true +  end +  after_initialize do +    self.name = 'GenericAttributeMinMax' +    self.code = @@default_code +    self.criticity = @@default_criticity    end -#end +end | 
