about summary refs log tree commit diff
path: root/app/models/concerns
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2017-04-10 18:38:34 -0400
committerEugen <eugen@zeonfederated.com>2017-04-11 00:38:34 +0200
commitb57eed4584fbaa3bf83964bda804f27495b6f1fc (patch)
tree98827a05d98ae46c3c261cce09e2945baccc1d2e /app/models/concerns
parent3672a799d4bf9011bc665b6d8f55e58031513527 (diff)
Remove order prior to .find_in_batches (#1470)
The `Status` class has a default order on it, so when this query gets built and
gets all the way to `find_in_batches` there is an order already there.

When `find_in_batches` is run it discards any existing order on the query, and
emits a warning to the logs if there is one there.

This change removes the order prior calling `find_in_batches`, which will stop
the logged warning from occurring as well.
Diffstat (limited to 'app/models/concerns')
0 files changed, 0 insertions, 0 deletions