aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/generic_attribute_control/min_max.rb
blob: bab900f0ec1e03f80ddd196cc87b50c867058bc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module GenericAttributeControl
  class MinMax < ComplianceControl
    store_accessor :control_attributes, :minimum, :maximum, :target
    
    validates :target, presence: true
    include MinMaxValuesValidation

    class << self
      def attribute_type; :integer end
      def default_code; "3-Generic-2" end
    end
  end
end