I’ve been using ActiveRecord and ActionMailer outside Rails.
Recently wanted to update to 4.2.0 and got an issue:
NoMethodError: undefined method `env' for Rails:Module /Users/user/.rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/connection_handling.rb:3:in `block in <module:ConnectionHandling>'
I’ve also commented in the commit, so you can have a look for more info there.
Any ideas on how to solve it?