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