Sha256: a23c280634e388af1963a824a3c8a9d428eace4c008f3af5a375561deb515ea2

Contents?: true

Size: 469 Bytes

Versions: 25

Compression:

Stored size: 469 Bytes

Contents

module Effective
  module Providers
    module Phone
      extend ActiveSupport::Concern

      def phone
        @order ||= Order.find(params[:id])

        EffectiveOrders.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

25 entries across 25 versions & 1 rubygems

Version Path
effective_orders-4.4.6 app/controllers/effective/providers/phone.rb
effective_orders-4.4.5 app/controllers/effective/providers/phone.rb
effective_orders-4.4.4 app/controllers/effective/providers/phone.rb
effective_orders-4.4.3 app/controllers/effective/providers/phone.rb
effective_orders-4.4.2 app/controllers/effective/providers/phone.rb