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
yetanothernguyen-activemerchant-1.21.0 lib/active_merchant/billing/integrations.rb
activemerchant-1.21.0 lib/active_merchant/billing/integrations.rb
tlconnor-activemerchant-1.20.4 lib/active_merchant/billing/integrations.rb
activemerchant-1.20.4 lib/active_merchant/billing/integrations.rb
activemerchant-1.20.3 lib/active_merchant/billing/integrations.rb
activemerchant-1.20.2 lib/active_merchant/billing/integrations.rb
activemerchant-1.20.1 lib/active_merchant/billing/integrations.rb
activemerchant-1.20.0 lib/active_merchant/billing/integrations.rb
vibedeck-activemerchant-1.18.2 lib/active_merchant/billing/integrations.rb
activemerchant-1.18.1 lib/active_merchant/billing/integrations.rb
fishman-activemerchant-1.18.0 lib/active_merchant/billing/integrations.rb
activemerchant-1.18.0 lib/active_merchant/billing/integrations.rb
activemerchant-1.17.0 lib/active_merchant/billing/integrations.rb
yetanothernguyen-activemerchant-1.16.0 lib/active_merchant/billing/integrations.rb
activemerchant-1.16.0 lib/active_merchant/billing/integrations.rb
gonow-activemerchant-1.15.0 lib/active_merchant/billing/integrations.rb
bitfluent-activemerchant-1.15.1 lib/active_merchant/billing/integrations.rb
activemerchant-kiddy-1.15.0.kiddy.1 lib/active_merchant/billing/integrations.rb
activemerchant-kiddy-1.15.0.kiddy lib/active_merchant/billing/integrations.rb
activemerchant-1.15.0 lib/active_merchant/billing/integrations.rb