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
tanga_activemerchant-1.38.0.5 lib/active_merchant/billing/gateways.rb
tanga_activemerchant-1.38.0.4 lib/active_merchant/billing/gateways.rb
tanga_activemerchant-1.38.0.3 lib/active_merchant/billing/gateways.rb
tanga_activemerchant-1.38.0.2 lib/active_merchant/billing/gateways.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/activemerchant-1.44.1/lib/active_merchant/billing/gateways.rb
tanga_activemerchant-1.38.0.1 lib/active_merchant/billing/gateways.rb
tanga_activemerchant-1.38.0 lib/active_merchant/billing/gateways.rb
tanga_activemerchant-1.37.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.45.0 lib/active_merchant/billing/gateways.rb
aktivemerchant-2.0.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.44.1 lib/active_merchant/billing/gateways.rb
activemerchant-1.44.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.43.3 lib/active_merchant/billing/gateways.rb
activemerchant-1.43.1 lib/active_merchant/billing/gateways.rb
activemerchant-1.43.0 lib/active_merchant/billing/gateways.rb
activemerchant-1.42.9 lib/active_merchant/billing/gateways.rb
activemerchant-1.42.8 lib/active_merchant/billing/gateways.rb
activemerchant-1.42.7 lib/active_merchant/billing/gateways.rb
activemerchant-1.42.6 lib/active_merchant/billing/gateways.rb
activemerchant-1.42.5 lib/active_merchant/billing/gateways.rb