Sha256: 51a42747e67be6c9d46af82d88db959089938b949cac8d6f806fbfcbe193b102
Contents?: true
Size: 502 Bytes
Versions: 2
Compression:
Stored size: 502 Bytes
Contents
module Spree module Admin class PrintInvoiceSettingsController < ResourceController def update settings = Spree::PrintInvoiceSetting.new params[:preferences].each do |name, value| next unless settings.has_preference? name settings[name] = value end flash[:success] = Spree.t(:successfully_updated, resource: Spree.t(:settings, scope: :print_invoice)) redirect_to edit_admin_print_invoice_settings_path end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree-print-invoice-2.2.0 | app/controllers/spree/admin/print_invoice_settings_controller.rb |
spree-print-invoice-2.1.0 | app/controllers/spree/admin/print_invoice_settings_controller.rb |