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

Version Path
effective_orders-6.14.6 app/controllers/effective/providers/phone.rb
effective_orders-6.14.5 app/controllers/effective/providers/phone.rb
effective_orders-6.14.4 app/controllers/effective/providers/phone.rb
effective_orders-6.14.3 app/controllers/effective/providers/phone.rb
effective_orders-6.14.2 app/controllers/effective/providers/phone.rb
effective_orders-6.14.1 app/controllers/effective/providers/phone.rb
effective_orders-6.14.0 app/controllers/effective/providers/phone.rb
effective_orders-6.13.3 app/controllers/effective/providers/phone.rb
effective_orders-6.13.2 app/controllers/effective/providers/phone.rb
effective_orders-6.13.1 app/controllers/effective/providers/phone.rb
effective_orders-6.13.0 app/controllers/effective/providers/phone.rb
effective_orders-6.12.4 app/controllers/effective/providers/phone.rb
effective_orders-6.12.3 app/controllers/effective/providers/phone.rb
effective_orders-6.12.2 app/controllers/effective/providers/phone.rb
effective_orders-6.12.1 app/controllers/effective/providers/phone.rb
effective_orders-6.12.0 app/controllers/effective/providers/phone.rb
effective_orders-6.9.10 app/controllers/effective/providers/phone.rb
effective_orders-6.9.9 app/controllers/effective/providers/phone.rb
effective_orders-6.9.8 app/controllers/effective/providers/phone.rb
effective_orders-6.9.7 app/controllers/effective/providers/phone.rb