Sha256: ac90ef1af9b60ddc29d82013d85a6f96729653f133555062d97616ac59c0904d

Contents?: true

Size: 211 Bytes

Versions: 43

Compression:

Stored size: 211 Bytes

Contents

module Spree
  class Tracker < Spree::Base
    def self.current
      tracker = where(active: true, environment: Rails.env).first
      tracker.analytics_id.present? ? tracker : nil if tracker
    end
  end
end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
solidus_core-1.0.7 app/models/spree/tracker.rb
solidus_core-1.0.6 app/models/spree/tracker.rb
solidus_core-1.0.5 app/models/spree/tracker.rb
solidus_core-1.0.4 app/models/spree/tracker.rb
solidus_core-1.0.3 app/models/spree/tracker.rb
solidus_core-1.1.0.pre1 app/models/spree/tracker.rb
solidus_core-1.1.0.beta1 app/models/spree/tracker.rb
solidus_core-1.0.2 app/models/spree/tracker.rb
spree_core-2.4.10 app/models/spree/tracker.rb
spree_core-2.3.13 app/models/spree/tracker.rb
solidus_core-1.0.1 app/models/spree/tracker.rb
solidus_core-1.0.0 app/models/spree/tracker.rb
solidus_core-1.0.0.rc2 app/models/spree/tracker.rb
solidus_core-1.0.0.rc1 app/models/spree/tracker.rb
spree_core-2.4.9 app/models/spree/tracker.rb
spree_core-2.3.12 app/models/spree/tracker.rb
solidus_core-1.0.0.pre3 app/models/spree/tracker.rb
solidus_core-1.0.0.pre2 app/models/spree/tracker.rb
spree_core-2.4.8 app/models/spree/tracker.rb
spree_core-2.3.11 app/models/spree/tracker.rb