Call before_render after environment is configured