lib/active_merchant/billing/integrations.rb in activemerchant-1.3.2 vs lib/active_merchant/billing/integrations.rb in activemerchant-1.4.0
- old
+ new
@@ -8,8 +8,14 @@
require 'active_merchant/billing/integrations/gestpay'
require 'active_merchant/billing/integrations/two_checkout'
require 'active_merchant/billing/integrations/hi_trust'
# make the bogus gateway be classified correctly by the inflector
-Inflector.inflections do |inflect|
- inflect.uncountable 'bogus'
+if defined?(ActiveSupport::Inflector)
+ ActiveSupport::Inflector.inflections do |inflect|
+ inflect.uncountable 'bogus'
+ end
+else
+ Inflector.inflections do |inflect|
+ inflect.uncountable 'bogus'
+ end
end