Sha256: 654f9e1378ba7ad2433d63192a9e7d9e48402b168fc4bb51ef2e23571f6847df

Contents?: true

Size: 164 Bytes

Versions: 5

Compression:

Stored size: 164 Bytes

Contents

module Validatable
  class Errors
    def on(attribute)
      raw(attribute)
    end
  
    def full_messages
      errors.values.flatten.compact
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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