https://github.com/scoutapp/scout_rails/pull/10