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