Class: RushJob::SettingsController

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

Instance Method Summary collapse

Instance Method Details

#updateObject



3
4
5
6
7
# File 'app/controllers/rush_job/settings_controller.rb', line 3

def update
  change_setting if Settings::RUSH_JOB_SETTINGS[params[:setting]&.to_sym]

  redirect_to root_path
end