lib/support/gateway_support.rb in activemerchant-1.86.0 vs lib/support/gateway_support.rb in activemerchant-1.87.0

- old
+ new

@@ -12,27 +12,27 @@ def initialize Dir[File.expand_path(File.dirname(__FILE__) + '/../active_merchant/billing/gateways/*.rb')].each do |f| filename = File.basename(f, '.rb') gateway_name = filename + '_gateway' begin - gateway_class = ('ActiveMerchant::Billing::' + gateway_name.camelize).constantize + ('ActiveMerchant::Billing::' + gateway_name.camelize).constantize rescue NameError puts 'Could not load gateway ' + gateway_name.camelize + ' from ' + f + '.' end end @gateways = Gateway.implementations.sort_by(&:name) @gateways.delete(ActiveMerchant::Billing::BogusGateway) end def each_gateway - @gateways.each{|g| yield g } + @gateways.each { |g| yield g } end def features width = 15 print 'Name'.center(width + 20) - ACTIONS.each{|f| print f.to_s.capitalize.center(width) } + ACTIONS.each { |f| print f.to_s.capitalize.center(width) } puts each_gateway do |g| print g.display_name.ljust(width + 20) ACTIONS.each do |f|