Sha256: bcd2427c8f49c760839bd3de0c074736d03c138b63375250b3642183c1105a62
Contents?: true
Size: 440 Bytes
Versions: 2
Compression:
Stored size: 440 Bytes
Contents
module Spree module Admin class CashOnDeliveryConfigsController < Spree::Admin::BaseController def edit @charge = Spree::CashOnDelivery::Config.charge end def update Spree::CashOnDelivery::Config.charge = params[:cash_on_delivery_charge] flash[:success] = "Cash on delivery charge has been updated" redirect_to edit_admin_cash_on_delivery_configs_path end end end end
Version data entries
2 entries across 2 versions & 1 rubygems