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.70.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.69.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.68.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.67.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.66.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.65.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.64.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.63.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.62.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.61.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.60.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.59.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.58.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.57.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.56.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.55.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.54.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.53.0 lib/active_merchant/billing/gateways.rb
start_activemerchant-1.50.0 lib/active_merchant/billing/gateways.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/activemerchant-1.48.0/lib/active_merchant/billing/gateways.rb