Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

Commit

Permalink
Fix arel query.
Browse files Browse the repository at this point in the history
Conflicts:
	app/models/spree/tracker_decorator.rb
  • Loading branch information
Jeff Dutil committed Mar 27, 2013
1 parent b9c3df1 commit 3260170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/spree/tracker_decorator.rb
Expand Up @@ -2,6 +2,6 @@
belongs_to :store

def self.current(domain)
Spree::Tracker.where(:active => true, :environment => ENV['RAILS_ENV']).joins(:store).where("spree_stores.domains LIKE '%#{domain}%'").first
Spree::Tracker.where(:active => true, :environment => Rails.env).joins(:store).where("spree_stores.domains LIKE '%?%'", domain).first
end
end

0 comments on commit 3260170

Please sign in to comment.