Sha256: 1ade7f0a6fcff4901b712253ce4beb23aed90083ebbc2cdafe4b89b2df65fa6b

Contents?: true

Size: 310 Bytes

Versions: 8

Compression:

Stored size: 310 Bytes

Contents

module Landable
  module Traffic
    class Cookie < ActiveRecord::Base
      include Landable::Traffic::TableName

      lookup_by :cookie_id, cache: 100, find: true

      has_many :ownerships
      has_many :visits

      after_initialize do
        self.id ||= SecureRandom.uuid
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
landable-1.9.2 app/models/landable/traffic/cookie.rb
landable-1.9.1 app/models/landable/traffic/cookie.rb
landable-1.9.0 app/models/landable/traffic/cookie.rb
landable-1.9.0.rc2 app/models/landable/traffic/cookie.rb
landable-1.9.0.rc1 app/models/landable/traffic/cookie.rb
landable-1.8.0 app/models/landable/traffic/cookie.rb
landable-1.7.1.rc1 app/models/landable/traffic/cookie.rb
landable-1.7.0 app/models/landable/traffic/cookie.rb