Don't rely on Rails environment.