Class: Spree::Admin::InventorySettingsController

Inherits:
BaseController show all
Defined in:
app/controllers/spree/admin/inventory_settings_controller.rb

Instance Method Summary collapse

Methods included from Core::ControllerHelpers::Common

included

Methods included from Core::ControllerHelpers::Auth

#current_ability, included, #redirect_back_or_default, #store_location, #try_spree_current_user, #unauthorized

Instance Method Details

#updateObject



5
6
7
8
9
# File 'app/controllers/spree/admin/inventory_settings_controller.rb', line 5

def update
  Spree::Config.set(params[:preferences])
  flash[:success] = t(:successfully_updated, :resource => t(:inventory_settings))
  redirect_to edit_admin_inventory_settings_path
end