Fixes Rails 4 #with_scope deprecation-warning