Sha256: 3a04d90d4e52c0f0f183d1231281c2fa599e6504c1d54f0831df1c9f59d8faf4
Contents?: true
Size: 276 Bytes
Versions: 15
Compression:
Stored size: 276 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
15 entries across 15 versions & 1 rubygems