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

Commit

Permalink
Fix query again...
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Dutil committed Mar 28, 2013
1 parent 87e998c commit c4bce0c
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 belongs_to :store


def self.current(domain) 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
end end

0 comments on commit c4bce0c

Please sign in to comment.