Class: LotusAdmin::ProfilesController
- Inherits:
-
AuthenticatedController
- Object
- ActionController::Base
- ApplicationController
- AuthenticatedController
- LotusAdmin::ProfilesController
- Defined in:
- app/controllers/lotus_admin/profiles_controller.rb
Instance Method Summary collapse
Methods included from FileStreamer
Instance Method Details
#update ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'app/controllers/lotus_admin/profiles_controller.rb', line 11 def update if current_administrator.update(permitted_params) bypass_sign_in(current_administrator, scope: :administrator) redirect_to lotus_admin.root_path, notice: 'Changes to your profile have been saved' else render :edit end end |