Sha256: fe967dfe2e1227c2222affc2c7c7f34c1cea473974786551916bc1841f1a5676

Contents?: true

Size: 317 Bytes

Versions: 78

Compression:

Stored size: 317 Bytes

Contents

module PandaPal
  class Session < ActiveRecord::Base
    belongs_to :panda_pal_organization, class_name: 'PandaPal::Organization'

    validates :panda_pal_organization_id, presence: true

    after_initialize do
      self.session_key ||= SecureRandom.urlsafe_base64(60)
    end

    serialize :data, Hash
  end
end

Version data entries

78 entries across 78 versions & 1 rubygems

Version Path
panda_pal-5.4.8 app/models/panda_pal/session.rb
panda_pal-5.4.7 app/models/panda_pal/session.rb
panda_pal-5.4.6 app/models/panda_pal/session.rb
panda_pal-5.4.5 app/models/panda_pal/session.rb
panda_pal-5.4.4 app/models/panda_pal/session.rb
panda_pal-5.4.3 app/models/panda_pal/session.rb
panda_pal-5.4.2 app/models/panda_pal/session.rb
panda_pal-5.4.1 app/models/panda_pal/session.rb
panda_pal-5.4.0 app/models/panda_pal/session.rb
panda_pal-5.4.0.beta10 app/models/panda_pal/session.rb
panda_pal-5.4.0.beta9 app/models/panda_pal/session.rb
panda_pal-5.4.0.beta8 app/models/panda_pal/session.rb
panda_pal-5.4.0.beta7 app/models/panda_pal/session.rb
panda_pal-5.4.0.beta6 app/models/panda_pal/session.rb
panda_pal-5.4.0.beta5 app/models/panda_pal/session.rb
panda_pal-5.4.0.beta4 app/models/panda_pal/session.rb
panda_pal-5.4.0.beta3 app/models/panda_pal/session.rb
panda_pal-5.4.0.beta2 app/models/panda_pal/session.rb
panda_pal-5.4.0.beta1 app/models/panda_pal/session.rb
panda_pal-5.3.13 app/models/panda_pal/session.rb