aq1018/mongoid-history — pull request #110 by adbeelitamar (2014-07-03 04:36:42+00:00)
Title: Fix scope reference on history tracks criteria

This one is related with https://github.com/aq1018/mongoid-history/pull/106.

Scope reference in history_tracks criteria was changed after the support for polymorphic relation was added.
history_tracks method in embedded documents was not working properly, due to scope passed was wrong (it was sending the polymorphic name or an Array).

Please check the lines added in the spec file.