Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

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
    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
  • Nathan Kleyn
    • Tag changed from patch to active record, activerecord relation, patch
    by Nathan Kleyn at 5:10 PM

    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
    Nathan Kleyn commented at 9:08 AM

    I 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
  • Nathan Kleyn
    • Tag set to delegate method, activesupport
    by Nathan Kleyn at 4:34 PM

    The diff didn't attach last round, here it is.

  • Nathan Kleyn
    Nathan Kleyn created the ticket at 4:30 PM

    I'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...