Sha256: 1417bf3520dd90ee35cfad5d7b9841db79b1b5e62dfeb89b6b9dd5bbe193e4da

Contents?: true

Size: 773 Bytes

Versions: 1

Compression:

Stored size: 773 Bytes

Contents

module Killbill
  module Plugin
    module ActiveMerchant
      require 'killbill'

      require File.dirname(__FILE__) + '/properties_helper.rb'
      require File.dirname(__FILE__) + '/active_merchant/active_record/active_record_helper.rb'

      require 'active_support/core_ext'
      require File.dirname(__FILE__) + '/active_merchant/core_ext.rb'
      require File.dirname(__FILE__) + '/active_merchant/configuration.rb'

      Dir[File.dirname(__FILE__) + '/active_merchant/*.rb'].each do |f|
        # Get camelized class name
        filename = File.basename(f, '.rb')
        # Camelize the string to get the class name
        class_name = filename.camelize.to_sym

        # Register for autoloading
        autoload class_name, f
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
killbill-4.0.0 lib/killbill/helpers/active_merchant.rb