Sha256: 82072e6e4fc5e8522c793f9d31c527090ec6dbd5d18ebcb4761ec6e8a94d807d

Contents?: true

Size: 255 Bytes

Versions: 5

Compression:

Stored size: 255 Bytes

Contents

require 'token_authenticate_me/models/sessionable'

class Session < ActiveRecord::Base
  include TokenAuthenticateMe::Models::Sessionable

  belongs_to :user

  def as_json(options = {})
    { session: super({ include: :user }.merge(options)) }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
token_authenticate_me-0.4.3 spec/internal/app/models/session.rb
token_authenticate_me-0.4.2 spec/internal/app/models/session.rb
token_authenticate_me-0.4.1 spec/internal/app/models/session.rb
token_authenticate_me-0.4.0 spec/internal/app/models/session.rb
token_authenticate_me-0.3.0 spec/internal/app/models/session.rb