refactoring: it seems to be more common to depend on "consider_all_requests_local" instead of the rails environment