rails/rails — pull request #9870 by senny (2013-03-22 14:09:54+00:00)
Title: do not reset associations when preloading twice.

Closes #9806.

As the `through_options` always contained `{:order=>nil}` the second time,
the preloader ran, the association was always reset. This patch only
adds the `:order` to the `through_options` if it is set.