mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Re-add invoice settings controller removed by mistake
This commit is contained in:
13
app/controllers/admin/invoice_settings_controller.rb
Normal file
13
app/controllers/admin/invoice_settings_controller.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
module Admin
|
||||
class InvoiceSettingsController < Spree::Admin::BaseController
|
||||
def update
|
||||
Spree::Config.set(params[:preferences])
|
||||
|
||||
respond_to do |format|
|
||||
format.html {
|
||||
redirect_to main_app.edit_admin_invoice_settings_path
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user