saimonmoore / dm-counter-cache
- Source
- Commits
- Network (2)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
Saimon Moore (author)
Sun Dec 21 09:19:36 -0800 2008
| name | age | message | |
|---|---|---|---|
| |
History.txt | Sun Dec 14 03:48:16 -0800 2008 | |
| |
LICENSE | Sun Dec 14 03:48:16 -0800 2008 | |
| |
Manifest.txt | Sun Dec 14 03:48:16 -0800 2008 | |
| |
README.txt | Sun Dec 14 03:48:16 -0800 2008 | |
| |
Rakefile | Sun Dec 14 04:43:24 -0800 2008 | |
| |
TODO | Sun Dec 14 03:48:16 -0800 2008 | |
| |
lib/ | Sun Dec 21 09:19:36 -0800 2008 | |
| |
spec/ | Sun Dec 21 08:42:10 -0800 2008 | |
| |
tasks/ | Sun Dec 14 04:43:24 -0800 2008 |
README.txt
== README DataMapper::CounterCacheable automates the dec/incrementing of association counter fields. This is similar to counter caches in ActiveRecord. Example: class Post include DataMapper::Resource has n :comments property :id, Integer, :serial => true property :comments_count, Integer, :default => 0 end class Comment include DataMapper::Resource include DataMapper::CounterCacheable belongs_to :post, :counter_cache => true end
