Sha256: 875dd669468d2681dbaba2dd96e73dbeac3eb0dcfede53d54e4512fa6a9d706e

Contents?: true

Size: 472 Bytes

Versions: 2

Compression:

Stored size: 472 Bytes

Contents

module Pay
  class Engine < ::Rails::Engine
    engine_name 'pay'

    initializer 'pay.processors' do
      # Include processor backends
      require 'pay/stripe'    if defined? ::Stripe
      require 'pay/braintree' if defined? ::Braintree
    end

    config.to_prepare do
      Pay::Stripe.setup    if defined? ::Stripe
      Pay::Braintree.setup if defined? ::Braintree

      Pay.charge_model.include Pay::Receipts if defined? ::Receipts::Receipt
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pay-1.0.0.rc3 lib/pay/engine.rb
pay-1.0.0.rc2 lib/pay/engine.rb