Sha256: 8f2fb2f9da1fed3d60eb31de4fa29aaf9dd2f437e9db58bafc7d0299992e5961
Contents?: true
Size: 419 Bytes
Versions: 1
Compression:
Stored size: 419 Bytes
Contents
module Devise module Models module ApiTokenAuthenticatable extend ActiveSupport::Concern module ClassMethods def find_for_api_token_authentication(conditions) where(:login => conditions[:login]).joins(:tokens).where(Token.arel_table[:token].eq(conditions[:token])).first end ::Devise::Models.config(self, :api_token_authentication_keys) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
travis-core-0.0.1 | lib/devise/models/api_token_authenticatable.rb |