search for: delay_attributes

Displaying 1 result from an estimated 1 matches for "delay_attributes".

2006 Apr 02
2
Delaying table attribute load using ActiveRecord
...painfull and not very ''RoRy'', so I decided to hack ActiveRecord::Base so as to delay the attribute load... and it works. Attributes are dynamicaly loaded whenever client application accesses them explicitely. Syntax looks like the following: class A < ActiveRecord::Base delay_attributes :foo, :bar ... end Now I got two questions: - as I am new Rails (and Ruby as well): I am wondering if I am missing something concerning ActiveRecord usage (meaning this hack is useless), - if this patch is a good idea, I''d like to submit it to the maintainers of the project, but I don...