Initial Release
- This gem differs from current Rails master's implementation in two ways:
- To support Rails 3, the 'default' relation includes a
WHERE (1=1)
clause, as a workaround for the fact that.all
is an array in AR 3. - When limiting/offseting results, the limited size of the relation is not taken into account in the cache key; this will err toward expiring too much rather than too little, and will always do a count query regardless of whether the relation is loaded or not.
- To support Rails 3, the 'default' relation includes a
Bugfix
- Corrects a bug where models with a
#size
or#timestamp
method could fail to generate a proper cache key.
Bugfix
- Corrects a bug in the PostgreSQL adapter where calling
first
when getting collection stats adds an implicitorder_by
on an unselected column.
Bugfix
- Augments
ActiveRecord::Relation
with:send
to support Ruby 2.0.0, which marked.include
as a private module method.