artsy / garner

A set of Rack middleware and cache helpers that implement various caching strategies.
MIT License
343 stars 24 forks source link

Added support for Mongoid 5. #89

Closed dblock closed 9 years ago

dblock commented 9 years ago

This WIP, having a failing spec related to timestamp precision.

dblock commented 9 years ago

I am a bit concerned by having to .reload objects in this otherwise failing spec (it's failing for all versions of mongoid). The mongoid record key is basically different after the object is created vs. after it's reloaded because of the timestamp precision. Maybe @fancyremarker can pitch in his 2 cents here?