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
swiss-crm-activemerchant-1.0.15 lib/active_merchant/billing/gateways.rb
swiss-crm-activemerchant-1.0.14 lib/active_merchant/billing/gateways.rb
swiss-crm-activemerchant-1.0.13 lib/active_merchant/billing/gateways.rb
swiss-crm-activemerchant-1.0.12 lib/active_merchant/billing/gateways.rb
swiss-activemerchant-1.0.11 lib/active_merchant/billing/gateways.rb
swiss-activemerchant-1.0.10 lib/active_merchant/billing/gateways.rb
swiss-activemerchant-1.0.9 lib/active_merchant/billing/gateways.rb
swiss-activemerchant-1.0.8 lib/active_merchant/billing/gateways.rb
swiss-activemerchant-1.0.7 lib/active_merchant/billing/gateways.rb
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