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.6.3 app/controllers/effective/providers/phone.rb
effective_orders-4.6.2 app/controllers/effective/providers/phone.rb
effective_orders-4.6.0 app/controllers/effective/providers/phone.rb
effective_orders-4.5.12 app/controllers/effective/providers/phone.rb
effective_orders-4.5.11 app/controllers/effective/providers/phone.rb
effective_orders-4.5.10 app/controllers/effective/providers/phone.rb
effective_orders-4.5.9 app/controllers/effective/providers/phone.rb
effective_orders-4.5.8 app/controllers/effective/providers/phone.rb
effective_orders-4.5.7 app/controllers/effective/providers/phone.rb
effective_orders-4.5.6 app/controllers/effective/providers/phone.rb
effective_orders-4.5.5 app/controllers/effective/providers/phone.rb
effective_orders-4.5.4 app/controllers/effective/providers/phone.rb
effective_orders-4.5.3 app/controllers/effective/providers/phone.rb
effective_orders-4.5.2 app/controllers/effective/providers/phone.rb
effective_orders-4.5.1 app/controllers/effective/providers/phone.rb
effective_orders-4.5.0 app/controllers/effective/providers/phone.rb
effective_orders-4.4.10 app/controllers/effective/providers/phone.rb
effective_orders-4.4.9 app/controllers/effective/providers/phone.rb
effective_orders-4.4.8 app/controllers/effective/providers/phone.rb
effective_orders-4.4.7 app/controllers/effective/providers/phone.rb