I just created a new rails plugin ( Peak Obsession) that makes
:include work with paginate. This was enabled by changing Model.count
so
that it now accepts a hash of options including: :include and
:conditions.
This new Model.count is backwards compatible with the existing
Model.countin ActiveRecord, and it passes all Active Record unit tests
using MySQL and
Postgres.
Check it out if you want to use eager loading with paginate… and
please
send any feedback my way!
I just created a new rails plugin
(Peak Obsession) that makes
:include work with paginate. This was enabled by changing Model.count
so
that it now accepts a hash of options including: :include and
:conditions.
This new Model.count is backwards compatible with the existing
Model.count
in ActiveRecord, and it passes all Active Record unit tests using MySQL
and
Postgres.
Check it out if you want to use eager loading with paginate… and
please
send any feedback my way!