Sha256: ffe74a2fba7f6b884f8fcd7c8d2f07a60c6582b10da62d2c7128c1c150b31ce6

Contents?: true

Size: 526 Bytes

Versions: 103

Compression:

Stored size: 526 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

103 entries across 103 versions & 25 rubygems

Version Path
activemerchant-nsp-1.27.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.28.0 lib/active_merchant/billing/gateways.rb
yetanothernguyen-activemerchant-1.21.2 lib/active_merchant/billing/gateways.rb
activemerchant-1.27.0 lib/active_merchant/billing/gateways.rb
yetanothernguyen-activemerchant-1.21.1 lib/active_merchant/billing/gateways.rb
activemerchant-1.26.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.25.0 lib/active_merchant/billing/gateways.rb
jelaniharris-activemerchant-1.24.1 lib/active_merchant/billing/gateways.rb
activemerchant-1.24.0 lib/active_merchant/billing/gateways.rb
tlconnor-activemerchant-1.23.3 lib/active_merchant/billing/gateways.rb
tlconnor-activemerchant-1.23.2 lib/active_merchant/billing/gateways.rb
tlconnor-activemerchant-1.23.1 lib/active_merchant/billing/gateways.rb
tlconnor-activemerchant-1.23.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.23.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.22.0 lib/active_merchant/billing/gateways.rb
yetanothernguyen-activemerchant-1.21.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.21.0 lib/active_merchant/billing/gateways.rb
tlconnor-activemerchant-1.20.4 lib/active_merchant/billing/gateways.rb
activemerchant-1.20.4 lib/active_merchant/billing/gateways.rb
activemerchant-1.20.3 lib/active_merchant/billing/gateways.rb