Sha256: 1d2e24dd264badc1bcc649b79df6692fbcd7389d5b20b06162c857c49fdcec2d

Contents?: true

Size: 161 Bytes

Versions: 5

Compression:

Stored size: 161 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

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