Sha256: b5733e0979d4fbba664b5dbd6f7eff5f5785bd41fa403709789b44499bd04432

Contents?: true

Size: 465 Bytes

Versions: 99

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

99 entries across 99 versions & 6 rubygems

Version Path
swiss-activemerchant-1.0.6 lib/active_merchant/billing/gateways.rb
swiss-activemerchant-1.0.5 lib/active_merchant/billing/gateways.rb
swiss-activemerchant-1.0.4 lib/active_merchant/billing/gateways.rb
activemerchant-1.137.0 lib/active_merchant/billing/gateways.rb
swiss-activemerchant-1.0.2 lib/active_merchant/billing/gateways.rb
swiss-activemerchant-1.0.1 lib/active_merchant/billing/gateways.rb
activemerchant-1.133.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.131.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.130.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.129.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.126.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.125.0 lib/active_merchant/billing/gateways.rb
archetype2142_activemerchant-1.124.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.124.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.123.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.121.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.120.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.119.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.118.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.117.0 lib/active_merchant/billing/gateways.rb