Sha256: 312c3a460012a9eaa005989b9537ce1c4e93b9ee6183464584fade769b6bbd9f

Contents?: true

Size: 234 Bytes

Versions: 5

Compression:

Stored size: 234 Bytes

Contents

require 'token_authenticate_me/models/authenticatable'

class User < ActiveRecord::Base
  include TokenAuthenticateMe::Models::Authenticatable

  has_many :sessions

  def as_json(options = nil)
    { user: super(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/user.rb
token_authenticate_me-0.4.2 spec/internal/app/models/user.rb
token_authenticate_me-0.4.1 spec/internal/app/models/user.rb
token_authenticate_me-0.4.0 spec/internal/app/models/user.rb
token_authenticate_me-0.3.0 spec/internal/app/models/user.rb