Sha256: b5733e0979d4fbba664b5dbd6f7eff5f5785bd41fa403709789b44499bd04432
Contents?: true
Size: 465 Bytes
Versions: 99
Compression:
Stored size: 465 Bytes
Contents
require 'pathname' module ActiveMerchant module Billing load_path = Pathname.new(__FILE__ + '/../../..') Dir[File.dirname(__FILE__) + '/gateways/**/*.rb'].each do |filename| gateway_name = File.basename(filename, '.rb') gateway_classname = "#{gateway_name}_gateway".camelize gateway_filename = Pathname.new(filename).relative_path_from(load_path).sub_ext('') autoload(gateway_classname, gateway_filename) end end end
Version data entries
99 entries across 99 versions & 6 rubygems