module Spree
  class Tracker < ActiveRecord::Base
    def self.current
      first(:conditions => { :active => true, :environment => Rails.env })
    end
  end
end

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

    def self.current
      first(:conditions => { :active => true, :environment => Rails.env })
    end
  end
end

Make analytics_id, :environment and :active mass-assignable for Tracker objects
Make analytics_id, :environment and :active mass-assignable for Tracker objects
