Sha256: 40af0fd7cb3630780cd9c8d7216829fe09fbcab0204017e377d4cec2b601bf00

Contents?: true

Size: 674 Bytes

Versions: 1

Compression:

Stored size: 674 Bytes

Contents

class Kiqr::Accounts::Settings::ProfilesController < Kiqr::Accounts::Settings::BaseController
  before_action do
    # This is to set the breadcrumbs for the onboarding process.
    add_breadcrumb I18n.t("kiqr.breadcrumbs.settings.accounts.profile.index"), account_settings_profile_path
  end

  def show
  end

  def update
    if @account.update(account_profile_params)
      kiqr_flash_message(:success, :account_profile_updated)
      redirect_to account_settings_profile_path
    else
      render :show, status: :unprocessable_content
    end
  end

  private

  def account_profile_params
    params.require(:account).permit(Kiqr.config.account_attributes)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kiqr-0.1.0.alpha1 app/controllers/kiqr/accounts/settings/profiles_controller.rb