Sha256: ade12aefbef00df813e83c1d68eee55450616f32c8f8b69558a13500f40ba0a5

Contents?: true

Size: 486 Bytes

Versions: 60

Compression:

Stored size: 486 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

60 entries across 60 versions & 6 rubygems

Version Path
activemerchant-1.32.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.31.1 lib/active_merchant/billing/gateways.rb
activemerchant-1.31.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.30.0 lib/active_merchant/billing/gateways.rb
jelaniharris-activemerchant-1.29.2 lib/active_merchant/billing/gateways.rb
activemerchant-1.29.3 lib/active_merchant/billing/gateways.rb
activemerchant-1.29.2 lib/active_merchant/billing/gateways.rb
activemerchant-1.29.1 lib/active_merchant/billing/gateways.rb
jelaniharris-activemerchant-1.29.1 lib/active_merchant/billing/gateways.rb
activemerchant-1.29.0 lib/active_merchant/billing/gateways.rb
paypal_permissions-0.0.4.3 lib/active_merchant/billing/gateways.rb
paypal_permissions-0.0.4.2 lib/active_merchant/billing/gateways.rb
paypal_permissions-0.0.4.0 lib/active_merchant/billing/gateways.rb
paypal_permissions-0.0.3.4 lib/active_merchant/billing/gateways.rb
paypal_permissions-0.0.3.3 lib/active_merchant/billing/gateways.rb
paypal_permissions-0.0.3.2 lib/active_merchant/billing/gateways.rb
paypal_permissions-0.0.3.1 lib/active_merchant/billing/gateways.rb
paypal_permissions-0.0.3 lib/active_merchant/billing/gateways.rb
paypal_permissions-0.0.2 lib/active_merchant/billing/gateways.rb
paypal_permissions-0.0.1 lib/active_merchant/billing/gateways.rb