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-1.20.2 lib/active_merchant/billing/gateways.rb
activemerchant-1.20.1 lib/active_merchant/billing/gateways.rb
activemerchant-1.20.0 lib/active_merchant/billing/gateways.rb
vibedeck-activemerchant-1.18.2 lib/active_merchant/billing/gateways.rb
activemerchant-1.18.1 lib/active_merchant/billing/gateways.rb
fishman-activemerchant-1.18.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.18.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.17.0 lib/active_merchant/billing/gateways.rb
yetanothernguyen-activemerchant-1.16.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.16.0 lib/active_merchant/billing/gateways.rb
gonow-activemerchant-1.15.0 lib/active_merchant/billing/gateways.rb
bitfluent-activemerchant-1.15.1 lib/active_merchant/billing/gateways.rb
activemerchant-kiddy-1.15.0.kiddy.1 lib/active_merchant/billing/gateways.rb
activemerchant-kiddy-1.15.0.kiddy lib/active_merchant/billing/gateways.rb
activemerchant-1.15.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.14.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.13.0 lib/active_merchant/billing/gateways.rb
goldstar-activemerchant-1.4.2.7 lib/active_merchant/billing/gateways.rb
activemerchant-1.12.1 lib/active_merchant/billing/gateways.rb
activemerchant-1.12.0 lib/active_merchant/billing/gateways.rb