Sha256: c159f10326749d2fcf9bb3d093c6657e336c9d9148b3dd4ccdb8d9bec72fb2ce

Contents?: true

Size: 261 Bytes

Versions: 9

Compression:

Stored size: 261 Bytes

Contents

module Spree
  module VendorConcern
    extend ActiveSupport::Concern

    included do
      belongs_to :vendor, class_name: 'Spree::Vendor', touch: true, optional: true

      scope :with_vendor, ->(vendor_id) { where(vendor_id: vendor_id) }
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_multi_vendor-2.5.0 app/models/concerns/spree/vendor_concern.rb
spree_multi_vendor-2.4.1 app/models/concerns/spree/vendor_concern.rb
atkhayar-dev-spree-multi-vendor-0.0.0 app/models/concerns/spree/vendor_concern.rb
spree_multi_vendor-2.4.0 app/models/concerns/spree/vendor_concern.rb
spree_multi_vendor-2.3.0 app/models/concerns/spree/vendor_concern.rb
spree_multi_vendor-2.2.0 app/models/concerns/spree/vendor_concern.rb
spree_multi_vendor-2.1.0 app/models/concerns/spree/vendor_concern.rb
spree_multi_vendor-2.0.2 app/models/concerns/spree/vendor_concern.rb
spree_multi_vendor-2.0.1 app/models/concerns/spree/vendor_concern.rb