Class: Admin::ConfigsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/admin/configs_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



10
11
12
# File 'app/controllers/admin/configs_controller.rb', line 10

def show
  @configs = config.all
end

#updateObject



14
15
16
17
18
# File 'app/controllers/admin/configs_controller.rb', line 14

def update
  config.update(params[:conf])
  flash[:notice] = "Config Changes Saved"
  redirect_to admin_config_path
end