Add Rails.env method for Rails 4