Sha256: 523079080d891312a07d338aea7d5dbde331385fe7f5d4486f4c0995c9047f3a
Contents?: true
Size: 260 Bytes
Versions: 4
Compression:
Stored size: 260 Bytes
Contents
Spree::Tracker.class_eval do belongs_to :store def self.current(store_key) Spree::Tracker.where(active: true, environment: Rails.env).joins(:store).where("spree_stores.code = ? OR spree_stores.url LIKE ?", store_key, "%#{store_key}%").first end end
Version data entries
4 entries across 4 versions & 1 rubygems