Sha256: 89e5b7237b6e0a5d92fbd4af72f9b59c2887bf8d422947872d82fc1a6b727496

Contents?: true

Size: 736 Bytes

Versions: 50

Compression:

Stored size: 736 Bytes

Contents

# make the bogus gateway be classified correctly by the inflector
if defined?(ActiveSupport::Inflector)
  ActiveSupport::Inflector.inflections do |inflect|
    inflect.uncountable 'bogus'
  end
else
  Inflector.inflections do |inflect|
    inflect.uncountable 'bogus'
  end
end

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

50 entries across 50 versions & 13 rubygems

Version Path
goldstar-activemerchant-1.4.2.7 lib/active_merchant/billing/integrations.rb
activemerchant-abn-ideal-1.7.0c lib/active_merchant/billing/integrations.rb
activemerchant-abn-ideal-1.7.0b lib/active_merchant/billing/integrations.rb
goldstar-activemerchant-1.4.2.6 lib/active_merchant/billing/integrations.rb
johnreitano-activemerchant-1.5.11 lib/active_merchant/billing/integrations.rb
smulube-activemerchant-1.7.1.5 lib/active_merchant/billing/integrations.rb
smulube-activemerchant-1.7.1.4 lib/active_merchant/billing/integrations.rb
johnreitano-activemerchant-1.5.10 lib/active_merchant/billing/integrations.rb
johnreitano-activemerchant-1.5.9 lib/active_merchant/billing/integrations.rb
smulube-activemerchant-1.7.1.3 lib/active_merchant/billing/integrations.rb
activemerchant-1.7.2 lib/active_merchant/billing/integrations.rb
projectdx_activemerchant-1.7.1.20100817.3 lib/active_merchant/billing/integrations.rb
projectdx_activemerchant-1.7.1.20100817.2 lib/active_merchant/billing/integrations.rb
projectdx_activemerchant-1.7.1.20100817.1 lib/active_merchant/billing/integrations.rb
humanzz-activemerchant-1.7.1.1 lib/active_merchant/billing/integrations.rb
humanzz-activemerchant-1.7.1 lib/active_merchant/billing/integrations.rb
smulube-activemerchant-1.7.1 lib/active_merchant/billing/integrations.rb
smulube-activemerchant-1.7.0.3 lib/active_merchant/billing/integrations.rb
activemerchant-1.7.1 lib/active_merchant/billing/integrations.rb
johnreitano-activemerchant-1.5.8 lib/active_merchant/billing/integrations.rb