Class: Iron::SettingsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/iron/settings_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



5
6
7
8
# File 'app/controllers/iron/settings_controller.rb', line 5

def show
  @account = Current.
  @locales = Locale.all
end

#updateObject



10
11
12
13
14
15
16
17
18
# File 'app/controllers/iron/settings_controller.rb', line 10

def update
  if Current..update()
    redirect_back fallback_location: settings_path, notice: t("iron.settings.notifications.updated")
  else
    @account = Current.
    @locales = Locale.all
    render :show, status: :unprocessable_entity
  end
end