Skip to content
Browse files

add attr_accessible store_id to tracker

Fixes #31
  • Loading branch information...
1 parent a63edf4 commit 0a2ca0f0133ca7d5e6f58fb73784d653e58ab6e6 @ajjahn ajjahn committed with radar
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/models/spree/tracker_decorator.rb
View
1 app/models/spree/tracker_decorator.rb
@@ -1,5 +1,6 @@
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

0 comments on commit 0a2ca0f

Please sign in to comment.
Something went wrong with that request. Please try again.