Class: EgovUtils::CurrentUsersController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- EgovUtils::CurrentUsersController
- Defined in:
- app/controllers/egov_utils/current_users_controller.rb
Instance Method Summary collapse
Instance Method Details
#edit ⇒ Object
5 |
# File 'app/controllers/egov_utils/current_users_controller.rb', line 5 def edit; end |
#update ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'app/controllers/egov_utils/current_users_controller.rb', line 7 def update current_user.update(update_params) if current_user.valid? redirect_to edit_current_user_path, notice: t('activerecord.successful.messages.updated', model: User.model_name.human) else render :edit end end |