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