Sha256: ade12aefbef00df813e83c1d68eee55450616f32c8f8b69558a13500f40ba0a5

Contents?: true

Size: 486 Bytes

Versions: 60

Compression:

Stored size: 486 Bytes

Contents

module ActiveMerchant
  module Billing
    autoload :Gateway, 'active_merchant/billing/gateway'

    Dir[File.dirname(__FILE__) + '/gateways/**/*.rb'].each do |f|
      # Get camelized class name
      filename = File.basename(f, '.rb')
      # Add _gateway suffix
      gateway_name = filename + '_gateway'
      # Camelize the string to get the class name
      gateway_class = gateway_name.camelize

      # Register for autoloading
      autoload gateway_class, f
    end
  end
end

Version data entries

60 entries across 60 versions & 6 rubygems

Version Path
activemerchant-1.42.4 lib/active_merchant/billing/gateways.rb
activemerchant-1.42.3 lib/active_merchant/billing/gateways.rb
activemerchant-1.42.2 lib/active_merchant/billing/gateways.rb
activemerchant-1.42.1 lib/active_merchant/billing/gateways.rb
activemerchant-1.42.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.41.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.40.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.39.2 lib/active_merchant/billing/gateways.rb
activemerchant-1.39.1 lib/active_merchant/billing/gateways.rb
activemerchant-1.39.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.38.1 lib/active_merchant/billing/gateways.rb
activemerchant-1.38.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.37.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.36.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.35.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.35.1 lib/active_merchant/billing/gateways.rb
activemerchant-1.34.1 lib/active_merchant/billing/gateways.rb
activemerchant-1.34.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.33.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.32.1 lib/active_merchant/billing/gateways.rb