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.5.8 lib/magerecord/product_attribute_set.rb
magerecord-0.5.7 lib/magerecord/product_attribute_set.rb
magerecord-0.5.6 lib/magerecord/product_attribute_set.rb
magerecord-0.5.5 lib/magerecord/product_attribute_set.rb
magerecord-0.5.4 lib/magerecord/product_attribute_set.rb
magerecord-0.5.3 lib/magerecord/product_attribute_set.rb
magerecord-0.5.2 lib/magerecord/product_attribute_set.rb
magerecord-0.5.1 lib/magerecord/product_attribute_set.rb
magerecord-0.5.0 lib/magerecord/product_attribute_set.rb
magerecord-0.4.0 lib/magerecord/product_attribute_set.rb
magerecord-0.3.1 lib/magerecord/product_attribute_set.rb
magerecord-0.3.0 lib/magerecord/product_attribute_set.rb
magerecord-0.2.2 lib/magerecord/product_attribute_set.rb
magerecord-0.2.1 lib/magerecord/product_attribute_set.rb
magerecord-0.2.0 lib/magerecord/product_attribute_set.rb
magerecord-0.1.12 lib/magerecord/product_attribute_set.rb
magerecord-0.1.10 lib/magerecord/product_attribute_set.rb
magerecord-0.1.9 lib/magerecord/product_attribute_set.rb
magerecord-0.1.8 lib/magerecord/product_attribute_set.rb
magerecord-0.1.6 lib/magerecord/product_attribute_set.rb