karmi/tire — pull request #653 by tpitale (2013-03-04 13:37:54+00:00)
Title: Remove the to_a; fixes data_mapper n+1 queries

When using Kaminari, whatever is returned from the scopes will behave as an array.

In the case of data_mapper this is especially important, because what gets returned also handles eager loading records. With the to_a in place, it's very likely that an n+1 query will be created during import.