Skip to content

Commit

Permalink
Work around inflector in Rails
Browse files Browse the repository at this point in the history
  • Loading branch information
Cody Fauser committed Sep 11, 2008
1 parent fd2b406 commit e3a75ce
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
= ActiveMerchant CHANGELOG

* Work around Rails Inflector change [cody]
* Add configurable timeouts to PostsData [Michael Koziarski]
* Add valid_sender? method to gateway integrations [Soleone]
* Fix PayPal error parsing [cody]
Expand Down
10 changes: 8 additions & 2 deletions lib/active_merchant/billing/integrations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
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?(Inflector)
Inflector.inflections do |inflect|
inflect.uncountable 'bogus'
end
else
ActiveSupport::Inflector.inflections do |inflect|
inflect.uncountable 'bogus'
end
end

0 comments on commit e3a75ce

Please sign in to comment.