Rails Prototypal Attributes
Posted: April 5th, 2008 | Author: Daniel Higginbotham | Filed under: Rails | No Comments »Give your models javascript-esque prototypal methods. When accessing an attribute on the prototypal object, the attribute’s value is returned if not nil. Otherwise, the “linked” object’s attribute value is returned.
Read the rest of this entry »
