Sha256: 9afaaa9f1a0aa8f50e2867ce525d2ab712170c2deafa3a05d3386205ceb730e1

Contents?: true

Size: 456 Bytes

Versions: 96

Compression:

Stored size: 456 Bytes

Contents

module ActiveMerchant
  module Billing
    module Integrations        
    
      Dir[File.dirname(__FILE__) + '/integrations/*.rb'].each do |f|      
      
        # Get camelized class name 
        filename = File.basename(f, '.rb')
        # Camelize the string to get the class name
        gateway_class = filename.camelize.to_sym
              
        # Register for autoloading
        autoload gateway_class, f      
      end
    end
  end
end

Version data entries

96 entries across 96 versions & 14 rubygems

Version Path
activemerchant-1.14.0 lib/active_merchant/billing/integrations.rb
activemerchant-1.13.0 lib/active_merchant/billing/integrations.rb
activemerchant-1.12.1 lib/active_merchant/billing/integrations.rb
activemerchant-1.12.0 lib/active_merchant/billing/integrations.rb
activemerchant-1.11.0 lib/active_merchant/billing/integrations.rb
activemerchant-1.10.0 lib/active_merchant/billing/integrations.rb
activemerchant-1.9.4 lib/active_merchant/billing/integrations.rb
activemerchant-1.9.3 lib/active_merchant/billing/integrations.rb
activemerchant-1.9.2 lib/active_merchant/billing/integrations.rb
n8_activemerchant-1.9.3 lib/active_merchant/billing/integrations.rb
maedana-activemerchant-1.9.1.1 lib/active_merchant/billing/integrations.rb
activemerchant-1.9.1 lib/active_merchant/billing/integrations.rb
activemerchant-1.9.0 lib/active_merchant/billing/integrations.rb
activemerchant-1.8.0 lib/active_merchant/billing/integrations.rb
activemerchant-1.7.3 lib/active_merchant/billing/integrations.rb
glebm-activemerchant-1.7.2.1 lib/active_merchant/billing/integrations.rb