Sha256: 02fea96e246bfcd2e2e7618fd7e06e61b0f006c27c0fc0d89e7d6f4514be88db

Contents?: true

Size: 346 Bytes

Versions: 6

Compression:

Stored size: 346 Bytes

Contents

require_relative 'tokens_serialization'

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.1.5 app/models/devise_jwt_auth/concerns/active_record_support.rb
devise_jwt_auth-0.1.4 app/models/devise_jwt_auth/concerns/active_record_support.rb
devise_jwt_auth-0.1.3 app/models/devise_jwt_auth/concerns/active_record_support.rb
devise_jwt_auth-0.1.2 app/models/devise_jwt_auth/concerns/active_record_support.rb
devise_jwt_auth-0.1.1 app/models/devise_jwt_auth/concerns/active_record_support.rb
devise_jwt_auth-0.1.0 app/models/devise_jwt_auth/concerns/active_record_support.rb