Skip to content

Commit

Permalink
Don't directly use the inflector in the action view helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Cody Fauser committed Sep 19, 2008
1 parent 942ec2a commit 9e7407d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
@@ -1,5 +1,6 @@
= ActiveMerchant CHANGELOG

* Don't directly use the inflector in the action view helper [cody]
* Work around Rails Inflector change [cody]
* Add configurable timeouts to PostsData [Michael Koziarski]
* Add valid_sender? method to gateway integrations [Soleone]
Expand Down
Expand Up @@ -42,7 +42,7 @@ module ActionViewHelper
def payment_service_for(order, account, options = {}, &proc)
raise ArgumentError, "Missing block" unless block_given?

integration_module = ActiveMerchant::Billing::Integrations.const_get(Inflector.classify("#{options.delete(:service)}"))
integration_module = ActiveMerchant::Billing::Integrations.const_get(options.delete(:service).to_s.classify)

concat(form_tag(integration_module.service_url, options.delete(:html) || {}), proc.binding)
result = "\n"
Expand Down

0 comments on commit 9e7407d

Please sign in to comment.