paypal_adaptive gem を使用して小さなアプリを開発しようとしていますが、これを実行しようとするたびに:
ipn = PaypalAdaptive::IpnNotification.new
開発では動作しますが、本番環境では mysql と次のエラーで失敗します:
NoMethodError: undefined method to_sym' for nil:NilClass
from /usr/local/rvm/gems/ruby-1.9.3-p327/gems/paypal_adaptive-0.3.2/lib/paypal_adaptive/config.rb:28:in
initialize' from /usr/local/rvm/gems/ruby-1.9.3-p327/gems/paypal_adaptive-0.3.2/lib/paypal_adaptive/config.rb:69:in new'
from /usr/local/rvm/gems/ruby-1.9.3-p327/gems/paypal_adaptive-0.3.2/lib/paypal_adaptive/config.rb:69:in
config' from /usr/local /rvm/gems/ruby-1.9.3-p327/gems/paypal_adaptive-0.3.2/lib/paypal_adaptive/ipn_notification.rb:9:in initialize'
from (irb):1:in
new' from (irb):1 from /usr/local/rvm/gems/ ruby-1.9.3-p327/gems/railties-3.2.8/lib/rails/commands/console.rb:47:in start'
from /usr/local/rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.8/lib/rails/commands/console.rb:8:in
start' from /usr/local/rvm/gems/ruby-1.9.3-p327/gems /railties-3.2.8/lib/rails/commands.rb:41:in <top (required)>'
from script/rails:6:in
require' from script/rails:6:in `'