Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

9 lines (7 sloc) 0.253 kB
Spree::Tracker.class_eval do
belongs_to :store
attr_accessible :store_id
def self.current(domain)
Spree::Tracker.where(:active => true, :environment => Rails.env).joins(:store).where("spree_stores.domains LIKE '%#{domain}%'").first
end
end
Jump to Line
Something went wrong with that request. Please try again.