Class: DeviseIosRails::RegistrationsController
- Inherits:
-
Devise::RegistrationsController
- Object
- Devise::RegistrationsController
- DeviseIosRails::RegistrationsController
- Defined in:
- app/controllers/devise_ios_rails/registrations_controller.rb
Instance Method Summary collapse
- #after_update_path_for(resource) ⇒ Object
- #authenticate_scope! ⇒ Object
- #update_resource(resource, params) ⇒ Object
Instance Method Details
#after_update_path_for(resource) ⇒ Object
13 14 15 |
# File 'app/controllers/devise_ios_rails/registrations_controller.rb', line 13 def after_update_path_for(resource) send :"edit_#{resource_name}_registration_url" end |
#authenticate_scope! ⇒ Object
8 9 10 11 |
# File 'app/controllers/devise_ios_rails/registrations_controller.rb', line 8 def authenticate_scope! send(:"authenticate_#{resource_name}_from_token!") self.resource = send(:"current_#{resource_name}") end |
#update_resource(resource, params) ⇒ Object
17 18 19 20 |
# File 'app/controllers/devise_ios_rails/registrations_controller.rb', line 17 def update_resource(resource, params) resource.attributes = params resource.save end |