Sha256: f2c3e1640215ac6f2e3952e4481fb2d5783a9104bdb4caa67bb097eb063e0393

Contents?: true

Size: 267 Bytes

Versions: 1

Compression:

Stored size: 267 Bytes

Contents

class AttributeMapping < ActiveRecord::Base
  include AttributeMapping::LocalCache

  def definition
    target_class.attributes[attribute_name]
  end

  def target_class
    @target_class ||= namespace.constantize
  end

  def to_option
    [label, value]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axle_attributes-1.13.2 app/models/attribute_mapping.rb