Sha256: 2107cd03286008b050f13daad9e712502db7a2b7e78e044ccb106da5e255b586

Contents?: true

Size: 282 Bytes

Versions: 16

Compression:

Stored size: 282 Bytes

Contents

module Spree
  class Tracker < ActiveRecord::Base
    attr_accessible :analytics_id, :environment, :active

    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

16 entries across 16 versions & 2 rubygems

Version Path
spree_core-1.3.5 app/models/spree/tracker.rb
spree_core-1.3.4 app/models/spree/tracker.rb
spree_core-1.3.3 app/models/spree/tracker.rb
spree_core-1.2.5 app/models/spree/tracker.rb
spree_core-1.2.4 app/models/spree/tracker.rb
spree_core-1.3.2 app/models/spree/tracker.rb
spree_core-1.2.3 app/models/spree/tracker.rb
spree_core-1.3.1 app/models/spree/tracker.rb
spree_core-1.3.0 app/models/spree/tracker.rb
spree_core-1.3.0.rc2 app/models/spree/tracker.rb
dup_spree_core-1.3.0.rc1 app/models/spree/tracker.rb
spree_core-1.3.0.rc1 app/models/spree/tracker.rb
spree_core-1.2.2 app/models/spree/tracker.rb
spree_core-1.2.0 app/models/spree/tracker.rb
spree_core-1.2.0.rc2 app/models/spree/tracker.rb
spree_core-1.2.0.rc1 app/models/spree/tracker.rb