Class: SimpleTokenAuthentication::FallbackAuthenticationHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_token_authentication/fallback_authentication_handler.rb

Instance Method Summary collapse

Instance Method Details

#authenticate_entity!(controller, entity) ⇒ Object

Devise authentication is performed through a controller which includes Devise::Controllers::Helpers See rdoc.info/github/plataformatec/devise/master/\

Devise/Controllers/Helpers#define_helpers-class_method

7
8
9
# File 'lib/simple_token_authentication/fallback_authentication_handler.rb', line 7

def authenticate_entity!(controller, entity)
  controller.send("authenticate_#{entity.name_underscore}!".to_sym)
end