Nathan Kleyn
Project Manager · Not a member
Nathan Kleyn's latest activity
Monday, October 11 2010
4787
Add :delegating option to belongs_to and has_one assoc macro
was updated
in Ruby on Rails
-
Nathan Kleyn commented at 1:42 PM+1, this seems like a really useful addition. I've had this same style of code littering my models for too long. =]
Thursday, September 09 2010
5552
Relation fails to act like an Array on intersection
was updated
in Ruby on Rails
-
- Tag changed from patch to active record, activerecord relation, patch
This applied fine for me, and seems to be exactly what's needed. +1 from me too.
5582
Add :writer attribute to delegate method
was updated
in Ruby on Rails
-
Nathan Kleyn commented at 9:08 AMI did it more for situations where one would like to delegate a handful of methods, but not have to explicitly write the writer methods out:
delegate :name, :p...
Wednesday, September 08 2010
5582
Add :writer attribute to delegate method
was updated
in Ruby on Rails
-
- Tag set to delegate method, activesupport
The diff didn't attach last round, here it is.
-
Nathan Kleyn created the ticket at 4:30 PMI've created a patch to add a :writer attribute to the delegate method. The :writer method, when set, constructs a delegate method to the writer of the method p...