Created
October 24, 2011 13:03
-
-
Save oivoodoo/1308969 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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