Class: Admin::EditorSettingsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/admin/editor_settings_controller.rb

Instance Method Summary collapse

Instance Method Details

#updateObject



2
3
4
5
6
7
# File 'app/controllers/admin/editor_settings_controller.rb', line 2

def update
  @config = Spree::Editor::Config.instance
  @config.update_attributes(params[@config.class.name.underscore])
  Rails.cache.delete("configuration_#{@config.class.name}".to_sym)
  redirect_to admin_editor_settings_path
end