Class: Jabe::Admin::SettingsController

Inherits:
BaseController show all
Defined in:
app/controllers/jabe/admin/settings_controller.rb

Instance Method Summary collapse

Methods included from BodyClassHelper

#body_class_name, included

Methods included from PublicEntryUrl

included, #public_entry_url

Instance Method Details

#updateObject



4
5
6
7
8
9
10
11
# File 'app/controllers/jabe/admin/settings_controller.rb', line 4

def update
  if Jabe::SETTINGS.update_attributes(params[:settings])
     Jabe::SETTINGS.do_updates
    redirect_to admin_root_path, :notice => 'Settings updated.'
  else
    render :edit
  end
end