Skip to content

Commit

Permalink
Fix README for ActiveRecord mixin (per artsy#37)
Browse files Browse the repository at this point in the history
cc: @skwp
  • Loading branch information
Frank Macreery committed Jun 20, 2013
1 parent 72d85b2 commit b55153d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ Order.find(3).invalidate_garner_caches
Garner provides rudimentary support for `ActiveRecord`. To use ActiveRecord models for Garner bindings, use `Garner::Mixins::ActiveRecord::Base`. You can set it up in an initializer:

``` ruby
require "garner/mixins/active_record"

module ActiveRecord
module Base
class Base
include Garner::Mixins::ActiveRecord::Base
end
end
Expand Down

0 comments on commit b55153d

Please sign in to comment.