Files
openfoodnetwork/app/controllers/admin/invoice_settings_controller.rb
Pierre de Lacroix 2fe25c6219 Allow both invoice layouts to coexist
Add a new "Invoice" page in the admin backend
with a checkbox to toggle between layouts
2017-03-15 15:06:28 +11:00

14 lines
258 B
Ruby

class Admin::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