Permalink
Browse files

Fix query again...

  • Loading branch information...
1 parent 3260170 commit 1414fad1da4c8182a73121cf26a7eba560ce7d1f @JDutil JDutil committed Mar 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/spree/tracker_decorator.rb
@@ -2,6 +2,6 @@
belongs_to :store
def self.current(domain)
- Spree::Tracker.where(:active => true, :environment => 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 1414fad

Please sign in to comment.