Sha256: c02fefbcfdef4ac2cfef871225881f5feacf03f55abb8b2403aa014dfe3c3ff5

Contents?: true

Size: 169 Bytes

Versions: 5

Compression:

Stored size: 169 Bytes

Contents

module Validatable
  class ValidatesAcceptanceOf < ValidationBase
    def message(instance)
      super || '%s must be accepted'.t(humanized_attribute)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
datamapper-0.2.4 lib/data_mapper/validatable_extensions/validations/validates_acceptance_of.rb
datamapper-0.2.5 lib/data_mapper/validatable_extensions/validations/validates_acceptance_of.rb
datamapper-0.3.0 lib/data_mapper/validatable_extensions/validations/validates_acceptance_of.rb
datamapper-0.3.1 lib/data_mapper/validatable_extensions/validations/validates_acceptance_of.rb
datamapper-0.3.2 lib/data_mapper/validatable_extensions/validations/validates_acceptance_of.rb