Sha256: 60957447ee720ec184817225b853ad65062b28d0b89652a639bd7ccff20bf758

Contents?: true

Size: 437 Bytes

Versions: 13

Compression:

Stored size: 437 Bytes

Contents

class Profile
  # Required dependency for ActiveModel::Errors
  extend ActiveModel::Naming

  def initialize
    @errors = ActiveModel::Errors.new(self)
  end

  attr_reader   :errors

  # The following methods are needed to be minimally implemented

  def read_attribute_for_validation(attr)
    send(attr)
  end

  def Profile.human_attribute_name(attr, options = {})
    attr
  end

  def Profile.lookup_ancestors
    [self]
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ama_validators-0.0.13 spec/factories/profiles.rb
ama_validators-0.0.12 spec/factories/profiles.rb
ama_validators-0.0.11 spec/factories/profiles.rb
ama_validators-0.0.10 spec/factories/profiles.rb
ama_validators-0.0.9 spec/factories/profiles.rb
ama_validators-0.0.8 spec/factories/profiles.rb
ama_validators-0.0.7 spec/factories/profiles.rb
ama_validators-0.0.6 spec/factories/profiles.rb
ama_validators-0.0.5 spec/factories/profiles.rb
ama_validators-0.0.4 spec/factories/profiles.rb
ama_validators-0.0.3 spec/factories/profiles.rb
ama_validators-0.0.2 spec/factories/Profiles.rb
ama_validators-0.0.1 spec/factories/Profiles.rb