News for hackers. Stuff that matters.
Re:Decorating ActiveRecord Accessor Methods by mattmcknight on Friday June 26, 2009 @11:26PM (#676557)
Oh, it could be made general, just add the name of the actual datetime field as a parameter of the hash. Then you could drop the method into ActiveRecord. Anyway, the second solution is okay, because it is explicit enough. However it it still builds a dependency on define_attribute_methods.

There are no comments on this comment yet.