Sha256: b0d428c89abe8cd5905c3524bf556a693b4d6c7a4c5128dd0044c4210a1c74fc

Contents?: true

Size: 476 Bytes

Versions: 25

Compression:

Stored size: 476 Bytes

Contents

module Effective
  module Providers
    module Cheque
      extend ActiveSupport::Concern

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

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

        flash[:success] = EffectiveOrders.cheque[:success]

        order_deferred(provider: 'cheque', deferred_url: cheque_params[:deferred_url])
      end

      def cheque_params
        params.require(:cheque).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/cheque.rb
effective_orders-4.6.2 app/controllers/effective/providers/cheque.rb
effective_orders-4.6.0 app/controllers/effective/providers/cheque.rb
effective_orders-4.5.12 app/controllers/effective/providers/cheque.rb
effective_orders-4.5.11 app/controllers/effective/providers/cheque.rb
effective_orders-4.5.10 app/controllers/effective/providers/cheque.rb
effective_orders-4.5.9 app/controllers/effective/providers/cheque.rb
effective_orders-4.5.8 app/controllers/effective/providers/cheque.rb
effective_orders-4.5.7 app/controllers/effective/providers/cheque.rb
effective_orders-4.5.6 app/controllers/effective/providers/cheque.rb
effective_orders-4.5.5 app/controllers/effective/providers/cheque.rb
effective_orders-4.5.4 app/controllers/effective/providers/cheque.rb
effective_orders-4.5.3 app/controllers/effective/providers/cheque.rb
effective_orders-4.5.2 app/controllers/effective/providers/cheque.rb
effective_orders-4.5.1 app/controllers/effective/providers/cheque.rb
effective_orders-4.5.0 app/controllers/effective/providers/cheque.rb
effective_orders-4.4.10 app/controllers/effective/providers/cheque.rb
effective_orders-4.4.9 app/controllers/effective/providers/cheque.rb
effective_orders-4.4.8 app/controllers/effective/providers/cheque.rb
effective_orders-4.4.7 app/controllers/effective/providers/cheque.rb