module Devise::Models::TokenAuthenticatable::ClassMethods

def authentication_token

Generate a token checking if one does not already exist in the database.
def authentication_token
  generate_token(:authentication_token)
end

def find_for_token_authentication(conditions)

def find_for_token_authentication(conditions)
  find_for_authentication(:authentication_token => conditions[token_authentication_key])
end