Method: Devise::Controllers::Helpers#authenticate
- Defined in:
- lib/devise/controllers/helpers.rb
#authenticate(scope) ⇒ Object
Attempts to authenticate the given scope by running authentication hooks, but does not redirect in case of failures.
35 36 37 |
# File 'lib/devise/controllers/helpers.rb', line 35 def authenticate(scope) warden.authenticate(:scope => scope) end |