Pass the request, rather than @env instance variable which doesn't seem to exist