Sha256: 7579be8f4dd18d685a0d38be74451d13ecb92615ca0dba1c09ef370f44075fe3

Contents?: true

Size: 224 Bytes

Versions: 3

Compression:

Stored size: 224 Bytes

Contents

class CustomReader
  include ActiveModel::Validations

  def initialize(data = {})
    @data = data
  end

  def []=(key, value)
    @data[key] = value
  end

  def read_attribute_for_validation(key)
    @data[key]
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
activejob-lock-0.0.2 rails/activemodel/test/models/custom_reader.rb
activejob-lock-0.0.1 rails/activemodel/test/models/custom_reader.rb
mass_assignment_with_multiple_roles-0.0.1 test/models/custom_reader.rb