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.41.0 lib/active_merchant/billing/integrations.rb
activemerchant-1.40.0 lib/active_merchant/billing/integrations.rb
activemerchant-1.39.2 lib/active_merchant/billing/integrations.rb
activemerchant-1.39.1 lib/active_merchant/billing/integrations.rb
activemerchant-1.39.0 lib/active_merchant/billing/integrations.rb
activemerchant-1.38.1 lib/active_merchant/billing/integrations.rb
activemerchant-1.38.0 lib/active_merchant/billing/integrations.rb
activemerchant-1.37.0 lib/active_merchant/billing/integrations.rb
activemerchant-1.36.0 lib/active_merchant/billing/integrations.rb
activemerchant-1.35.0 lib/active_merchant/billing/integrations.rb
activemerchant-1.35.1 lib/active_merchant/billing/integrations.rb
activemerchant-1.34.1 lib/active_merchant/billing/integrations.rb
activemerchant-1.34.0 lib/active_merchant/billing/integrations.rb
activemerchant-1.33.0 lib/active_merchant/billing/integrations.rb
activemerchant-1.32.1 lib/active_merchant/billing/integrations.rb
activemerchant-1.32.0 lib/active_merchant/billing/integrations.rb
activemerchant-1.31.1 lib/active_merchant/billing/integrations.rb
activemerchant-1.31.0 lib/active_merchant/billing/integrations.rb
activemerchant-1.30.0 lib/active_merchant/billing/integrations.rb
jelaniharris-activemerchant-1.29.2 lib/active_merchant/billing/integrations.rb