This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
technoweenie (author)
Sat Apr 07 16:25:15 -0700 2007
commit a50087b83300a43f9ce15d91cf02dd85d5bf9a7e
tree ade68c521822068eddb232719b23828fd693b105
parent dd59f8aa8ca5573285624e85641d938f7dfdc287
tree ade68c521822068eddb232719b23828fd693b105
parent dd59f8aa8ca5573285624e85641d938f7dfdc287
| name | age | message | |
|---|---|---|---|
| |
README | Sun Nov 26 00:21:19 -0800 2006 | [technoweenie] |
| |
Rakefile | Sat Nov 25 22:50:21 -0800 2006 | [technoweenie] |
| |
init.rb | Sat Nov 25 22:50:21 -0800 2006 | [technoweenie] |
| |
lib/ | Sat Apr 07 16:25:15 -0700 2007 | [technoweenie] |
| |
test/ | Sat Nov 25 23:33:38 -0800 2006 | [technoweenie] |
README
ActiveRecordContext
===================
Simple ActiveRecord context for caching AR objects. It caches all records from #find queries
that aren't readonly, and that don't have eagerly loaded associations. It only looks in the context
on simple Foo.find(id) queries with no conditions. It's designed to work as an alternative to eager
loading associations. It will also help all the extra find calls for models that access their associations
in callbacks/validations.
It only uses the context when it's activated. To activate, you can set a controller around_filter:
around_filter :set_context
def set_context
ActiveRecord::Base.with_context do
yield
end
end
Set Technoweenie::ActiveRecordContext.log_context_activity = true to turn on debug logging.




