Updated

app/controllers/accounts/settings / accounts_controller.rb

A
25 lines of codes
3 methods
6.9 complexity/method
6 churn
20.57 complexity
0 duplications
class Accounts::Settings::AccountsController < InternalController
  1. Accounts::Settings::AccountsController assumes too much for instance variable '@account'
  2. Accounts::Settings::AccountsController has no descriptive comment
include AccountConcern def edit; end def update if @account.update(account_params) respond_to do |format| format.html do redirect_to edit_account_settings_account_path(@account), notice: t('flash_messages.updated', model: Account.model_name.human) end format.turbo_stream end else render :edit, status: :unprocessable_entity end end private def account_params params.require(:account).permit(*permitted_account_params) end end