Sha256: d7665ea2f0a0bdd1b7760f62b3ce3eb2c0824d4c4391370f94c53df2b29069c5
Contents?: true
Size: 593 Bytes
Versions: 23
Compression:
Stored size: 593 Bytes
Contents
module Effective module Providers module Etransfer extend ActiveSupport::Concern def etransfer raise('etransfer provider is not available') unless EffectiveOrders.etransfer? @order ||= Order.deep.find(params[:id]) EffectiveResources.authorize!(self, :update, @order) flash[:success] = EffectiveOrders.etransfer[:success] order_deferred(provider: 'etransfer', deferred_url: etransfer_params[:deferred_url]) end def etransfer_params params.require(:etransfer).permit(:deferred_url) end end end end
Version data entries
23 entries across 23 versions & 1 rubygems