Replace the awkward where('1=1') statements with Rails 4's all for ActiveRecord scopes.