Sha256: fbb60c711636f264eab6aaf150e3a18aa7f9f4d2a49b58fd928d26813118266f

Contents?: true

Size: 461 Bytes

Versions: 15

Compression:

Stored size: 461 Bytes

Contents

module Effective
  module Providers
    module Pretend
      extend ActiveSupport::Concern

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

        EffectiveOrders.authorize!(self, :update, @order)

        order_purchased(
          details: 'for pretend',
          provider: 'pretend',
          card: 'none',
          purchased_url: params[:purchased_url],
          declined_url: params[:declined_url]
        )
      end

    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
effective_orders-3.2.3 app/controllers/effective/providers/pretend.rb
effective_orders-3.2.2 app/controllers/effective/providers/pretend.rb
effective_orders-3.2.1 app/controllers/effective/providers/pretend.rb
effective_orders-3.2.0 app/controllers/effective/providers/pretend.rb
effective_orders-3.1.7 app/controllers/effective/providers/pretend.rb
effective_orders-3.1.6 app/controllers/effective/providers/pretend.rb
effective_orders-3.1.4 app/controllers/effective/providers/pretend.rb
effective_orders-3.1.3 app/controllers/effective/providers/pretend.rb
effective_orders-3.1.0 app/controllers/effective/providers/pretend.rb
effective_orders-3.0.4 app/controllers/effective/providers/pretend.rb
effective_orders-3.0.3 app/controllers/effective/providers/pretend.rb
effective_orders-3.0.2 app/controllers/effective/providers/pretend.rb
effective_orders-4.0.0beta1 app/controllers/effective/providers/pretend.rb
effective_orders-3.0.1 app/controllers/effective/providers/pretend.rb
effective_orders-3.0.0 app/controllers/effective/providers/pretend.rb