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