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
smulube-activemerchant-1.5.1.4 lib/active_merchant/billing/gateways.rb
smulube-activemerchant-1.5.1.3 lib/active_merchant/billing/gateways.rb
johnreitano-activemerchant-1.5.3 lib/active_merchant/billing/gateways.rb
johnreitano-activemerchant-1.5.2 lib/active_merchant/billing/gateways.rb
smulube-activemerchant-1.5.1.2 lib/active_merchant/billing/gateways.rb
smulube-activemerchant-1.5.1.1 lib/active_merchant/billing/gateways.rb
mysmallidea-activemerchant-1.5.1 lib/active_merchant/billing/gateways.rb
mcmire-activemerchant-1.5.2 lib/active_merchant/billing/gateways.rb
smulube-activemerchant-1.5.1 lib/active_merchant/billing/gateways.rb
easy-testmode-activemerchant-1.5.1 lib/active_merchant/billing/gateways.rb
noctivityinc-activemerchant-1.5.2 lib/active_merchant/billing/gateways.rb
noctivityinc-activemerchant-1.5.1 lib/active_merchant/billing/gateways.rb
activemerchant-1.5.1 lib/active_merchant/billing/gateways.rb
activemerchant-est-1.4.2.6 lib/active_merchant/billing/gateways.rb
activemerchant-1.5.0 lib/active_merchant/billing/gateways.rb
patmaddox-activemerchant-1.4.2.6 lib/active_merchant/billing/gateways.rb
patmaddox-activemerchant-1.4.2.5 lib/active_merchant/billing/gateways.rb
patmaddox-activemerchant-1.4.2.4 lib/active_merchant/billing/gateways.rb
patmaddox-activemerchant-1.4.2.3 lib/active_merchant/billing/gateways.rb
patmaddox-activemerchant-1.4.2.2 lib/active_merchant/billing/gateways.rb