Class: LotusAdmin::ProfilesController

Inherits:
AuthenticatedController show all
Defined in:
app/controllers/lotus_admin/profiles_controller.rb

Instance Method Summary collapse

Methods included from FileStreamer

#index

Instance Method Details

#updateObject



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)
    (current_administrator, scope: :administrator)
    redirect_to lotus_admin.root_path, notice: 'Changes to your profile have been saved'
  else
    render :edit
  end
end