Method: Devise::RegistrationsController#authenticate_scope!

Defined in:
app/controllers/devise/registrations_controller.rb

#authenticate_scope!Object (protected)

Authenticates the current scope and gets the current resource from the session.



131
132
133
134
# File 'app/controllers/devise/registrations_controller.rb', line 131

def authenticate_scope!
  send(:"authenticate_#{resource_name}!", force: true)
  self.resource = send(:"current_#{resource_name}")
end