Sha256: 03f8c2812fa350f580ea973ef9a2c6dfa60d74b84d3c45e768840cc61f0a9ae7

Contents?: true

Size: 329 Bytes

Versions: 26

Compression:

Stored size: 329 Bytes

Contents

module MageRecord
  # allows us to make queries like: "List all supplements"
  class ProductAttributeSet < ActiveRecord::Base
    self.table_name = :eav_attribute_set

    default_scope { where entity_type_id: 4 }

    alias_attribute :name, :attribute_set_name


    has_many :products, foreign_key: :attribute_set_id
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
magerecord-0.1.5 lib/magerecord/product_attribute_set.rb
magerecord-0.1.4 lib/magerecord/product_attribute_set.rb
magerecord-0.1.3 lib/magerecord/product_attribute_set.rb
magerecord-0.1.2 lib/magerecord/product_attribute_set.rb
magerecord-0.1.1 lib/magerecord/product_attribute_set.rb
magerecord-0.1.0 lib/magerecord/product_attribute_set.rb