I have Rails 3.0.0.rc2 and Ruby 1.9.2p180. I setup the gem following the websites instructions. Now the app fails to launch due to deprecated code found in line 1 of the generated config/initilizers/authorize_net.rb.
It appears to be because of the use of the RAILS_ROOT constant. I have tried substituting Rails.root and Rails.root.to_s with out any success. Are there any known work arounds or planned fixes?
Thanks
ps I am trying to use direct post in case it helps. And the gem I downloaded is version 1.5.2 per the "15 minute" instructions.
04-28-2011 01:16 PM - edited 04-28-2011 01:25 PM
Here is the fix:
Replace all occurrences of RAILS_ROOT with Rails.root and RAILS_ENV with Rails.env. The gem should be updated because it isn't the type of deprecation warning that spits out a warning but still works... it is the kind of warning that prevents the application from launching period.
04-28-2011 03:20 PM - edited 04-28-2011 03:21 PM
It looks like the generator still has not been fixed. I'm following the "15 minute" instructions, and using the latest (only) version of the gem (1.5.2), and I'm still seeing the exact same error that Brett saw 18 months ago.
We're evaluating Authorize.net, and I won't be able to recommend it if the gem is dead.
Please advise.
10-28-2012 01:20 PM
Hello? Any ruby devs on this forum?
11-03-2012 06:23 PM