Sha256: 53003c16b2379014704611175b34fa2208771a09e0ce8098ad14be4b0630a8ee

Contents?: true

Size: 552 Bytes

Versions: 2

Compression:

Stored size: 552 Bytes

Contents

module RefererTracking
  class RefererTracking < ActiveRecord::Base
    self.table_name = "referer_trackings"
    belongs_to :trackable, :polymorphic => true
    serialize :infos_session, Hash
    serialize :infos_request, Hash
    attr_accessible :trackable_id, :trackable_type, :cookie_referer_url, :cookie_first_url, :user_agent, :cookies_yaml, :current_request_referer_url

    def first_url_combined
      cookie_first_url || session_first_url
    end
    def referer_url_combined
      cookie_referer_url || session_referer_url
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
referer_tracking-4.0.1 app/models/referer_tracking/referer_tracking.rb
referer_tracking-4.0.0 app/models/referer_tracking/referer_tracking.rb