Sha256: d819e147cbec0e45bea4fb2800acdc731afac4a0d8ae3e5ce33f4ede8023a08c

Contents?: true

Size: 552 Bytes

Versions: 112

Compression:

Stored size: 552 Bytes

Contents

module Effective
  module Providers
    module Phone
      extend ActiveSupport::Concern

      def phone
        raise('phone provider is not available') unless EffectiveOrders.phone?

        @order ||= Order.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

112 entries across 112 versions & 1 rubygems

Version Path
effective_orders-5.5.0 app/controllers/effective/providers/phone.rb
effective_orders-5.4.4 app/controllers/effective/providers/phone.rb
effective_orders-5.4.3 app/controllers/effective/providers/phone.rb
effective_orders-5.4.2 app/controllers/effective/providers/phone.rb
effective_orders-5.4.1 app/controllers/effective/providers/phone.rb
effective_orders-5.4.0 app/controllers/effective/providers/phone.rb
effective_orders-5.3.2 app/controllers/effective/providers/phone.rb
effective_orders-5.3.1 app/controllers/effective/providers/phone.rb
effective_orders-5.3.0 app/controllers/effective/providers/phone.rb
effective_orders-5.2.17 app/controllers/effective/providers/phone.rb
effective_orders-5.2.16 app/controllers/effective/providers/phone.rb
effective_orders-5.2.15 app/controllers/effective/providers/phone.rb
effective_orders-5.2.14 app/controllers/effective/providers/phone.rb
effective_orders-5.2.13 app/controllers/effective/providers/phone.rb
effective_orders-5.2.12 app/controllers/effective/providers/phone.rb
effective_orders-5.2.11 app/controllers/effective/providers/phone.rb
effective_orders-5.2.10 app/controllers/effective/providers/phone.rb
effective_orders-5.2.9 app/controllers/effective/providers/phone.rb
effective_orders-5.2.8 app/controllers/effective/providers/phone.rb
effective_orders-5.2.7 app/controllers/effective/providers/phone.rb