artsy / garner

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

ActiveRecord mixin #36

Closed fancyremarker closed 11 years ago

fancyremarker commented 11 years ago

cc: @joeyAghion

The README was lacking documentation on how to include Garner::Cache::Binding into ActiveRecord classes and instances. (Thanks @skwp for catching this!) Assuming that we'll soon add some of the "extra" support to ActiveRecord that we currently provide for Mongoid (e.g., "virtual bindings" via Model.identify(id) and class-level bindings), I'm adding a fairly spartan ActiveRecord mixin.