Sha256: cd3d50cd9a2fb7d59a6d55d6439e16617319209d51a7e045792ae927f348a33f

Contents?: true

Size: 424 Bytes

Versions: 6

Compression:

Stored size: 424 Bytes

Contents

# frozen_string_literal: true

require_relative 'tokens_serialization'

# ActiveSupport Concern for serializing tokens
module DeviseJwtAuth::Concerns::ActiveRecordSupport
  extend ActiveSupport::Concern

  included do
    serialize :tokens, DeviseJwtAuth::Concerns::TokensSerialization
  end

  class_methods do
    # It's abstract replacement .find_by
    def dta_find_by(attrs = {})
      find_by(attrs)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
devise_jwt_auth-0.4.1 app/models/devise_jwt_auth/concerns/active_record_support.rb
devise_jwt_auth-0.4.0 app/models/devise_jwt_auth/concerns/active_record_support.rb
devise_jwt_auth-0.3.0 app/models/devise_jwt_auth/concerns/active_record_support.rb
devise_jwt_auth-0.2.0 app/models/devise_jwt_auth/concerns/active_record_support.rb
devise_jwt_auth-0.1.7 app/models/devise_jwt_auth/concerns/active_record_support.rb
devise_jwt_auth-0.1.6 app/models/devise_jwt_auth/concerns/active_record_support.rb