Sha256: b5733e0979d4fbba664b5dbd6f7eff5f5785bd41fa403709789b44499bd04432

Contents?: true

Size: 465 Bytes

Versions: 108

Compression:

Stored size: 465 Bytes

Contents

require 'pathname'

module ActiveMerchant
  module Billing
    load_path = Pathname.new(__FILE__ + '/../../..')
    Dir[File.dirname(__FILE__) + '/gateways/**/*.rb'].each do |filename|
      gateway_name      = File.basename(filename, '.rb')
      gateway_classname = "#{gateway_name}_gateway".camelize
      gateway_filename  = Pathname.new(filename).relative_path_from(load_path).sub_ext('')

      autoload(gateway_classname, gateway_filename)
    end
  end
end

Version data entries

108 entries across 108 versions & 7 rubygems

Version Path
activemerchant-1.107.1 lib/active_merchant/billing/gateways.rb
activemerchant-1.106.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.105.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.104.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.103.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.102.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.101.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.100.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.99.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.98.0 lib/active_merchant/billing/gateways.rb
active_accountability_merchant-1.97.1 lib/active_merchant/billing/gateways.rb
activemerchant-1.97.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.96.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.95.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.94.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.93.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.92.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.91.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.90.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.89.0 lib/active_merchant/billing/gateways.rb