Sha256: fd860e857173d91ffa9d06115e243ab1fb37366a06e5db0e643c9c5906e5a5d8
Contents?: true
Size: 537 Bytes
Versions: 1
Compression:
Stored size: 537 Bytes
Contents
module Gemgento # @author Gemgento LLC class ProductAttributeSet < ActiveRecord::Base has_and_belongs_to_many :product_attributes, -> { uniq }, :join_table => 'gemgento_attribute_set_attributes' has_many :products, class_name: 'Gemgento::Product' has_many :asset_types, class_name: 'Gemgento::AssetType' default_scope -> { where(deleted_at: nil) } def mark_deleted self.deleted_at = Time.now end def mark_deleted! mark_deleted self.save end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemgento-2.8.0 | app/models/gemgento/product_attribute_set.rb |