Skip to content

Instantly share code, notes, and snippets.

@oivoodoo
Created October 24, 2011 13:03
Show Gist options
  • Save oivoodoo/1308969 to your computer and use it in GitHub Desktop.
Save oivoodoo/1308969 to your computer and use it in GitHub Desktop.
class GlobalSettingsController < AdminController
include Umaami::Controllers::WithoutAccountRelation
before_filter :load_global_settings
add_catch_exceptions :global_settings, :only => :update
def edit
end
def update
@global_settings.update_attributes(params[:global_settings])
respond_with @global_settings, :location => edit_global_settings_path
end
private
def load_global_settings
@global_settings = GlobalSettings.instance
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment