Sha256: e41cb6a41ec7e1d4f92c64e28b91f8e6cc4d442e7299f4a74396da2cd125af3e

Contents?: true

Size: 301 Bytes

Versions: 10

Compression:

Stored size: 301 Bytes

Contents

module Landable
  module Traffic
    class Cookie < ActiveRecord::Base
      include Landable::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

10 entries across 10 versions & 1 rubygems

Version Path
landable-1.14.0 app/models/landable/traffic/cookie.rb
landable-1.13.2 app/models/landable/traffic/cookie.rb
landable-1.13.1 app/models/landable/traffic/cookie.rb
landable-1.12.3 app/models/landable/traffic/cookie.rb
landable-1.12.2 app/models/landable/traffic/cookie.rb
landable-1.12.1 app/models/landable/traffic/cookie.rb
landable-1.11.1 app/models/landable/traffic/cookie.rb
landable-1.11.0 app/models/landable/traffic/cookie.rb
landable-1.10.0.rc2 app/models/landable/traffic/cookie.rb
landable-1.10.0.rc1 app/models/landable/traffic/cookie.rb