Change Rails.env checking.