Just a quick props to some of Dan Kubb's awesome 0.10 refactorings.
The nice chainable support around methods like belongs_to allowed me
to refactor the previously broken dm-counter-cache plugin to something
much more beautiful.

Before:
http://github.com/merbjedi/dm-counter-cache/blob/cd4b08ef0d91ebfb90ca2b405aa8ade9a1879b2a/lib/dm-counter-cache.rb

After:
http://github.com/merbjedi/dm-counter-cache/blob/master/lib/dm-counter-cache.rb



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to