Class: EgovUtils::CurrentUsersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/egov_utils/current_users_controller.rb

Instance Method Summary collapse

Instance Method Details

#editObject



5
# File 'app/controllers/egov_utils/current_users_controller.rb', line 5

def edit; end

#updateObject



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