Revert "Revert "changed RAILS_ROOT to Rails.root in authorize_net.rb""

This reverts commit 21679d3b34c26b0f4c52b138f127801eb5306f3c.
Revert "Revert "changed RAILS_ENV to Rails.env in authorize_net.rb""

This reverts commit 1476c89682d3b099a4c648938d451a129a82abf9.