如何要求模块扩展代码
我的设置:Rails 3.0.9,Ruby 1.9.2
我需要扩展 Active Merchant 模块以包含我自己的代码,我正在关注此处的文章 http://blog.matthodan.com/how-to -add-support-for-paypal-website- payment
根据文章,我创建了 paypal_recurring_ payments.rb /vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/paypal/。接下来,我必须修改 Active Merchant gem 文件 paypal.rb 以添加一行代码。问题是我无法将该代码更改部署到 Heroku,因此我需要另一种方法来执行此操作。任何见解将不胜感激。
My setup: Rails 3.0.9, Ruby 1.9.2
I need to extend Active Merchant module to include my own code, I'm following the article here
http://blog.matthodan.com/how-to-add-support-for-paypal-website-payment
As per the article, I created paypal_recurring_payments.rb in /vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/paypal/. Next I have to modify an Active Merchant gem file paypal.rb to add a line of code. The problem is that I can't deploy that code change to Heroku, so I need an alternate way of doing this. Any insights will be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)