Class: Iron::SettingsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Iron::SettingsController
- Defined in:
- app/controllers/iron/settings_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
5 6 7 8 |
# File 'app/controllers/iron/settings_controller.rb', line 5 def show @account = Current.account @locales = Locale.all end |
#update ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'app/controllers/iron/settings_controller.rb', line 10 def update if Current.account.update(account_params) redirect_back fallback_location: settings_path, notice: t("iron.settings.notifications.updated") else @account = Current.account @locales = Locale.all render :show, status: :unprocessable_entity end end |