rails lazy load of model attributes -


But I would like to go through any other way: Always select only "id" and automatically load the properties later when necessary.

Example: user.description should be accessed, if it has not been loaded yet, select "WHOE id = # {self.id}" from users and set it .

Does anyone know if there is a rail plug-in which does this? Or how to implement it?

Thanks, Corin

I wrote a rail plug-in that actually did it Note that to make a bigger model for better columns, which you want to load on demand with large columns (since rail load related objects are dormant by default).


Comments

Popular posts from this blog

c# - TypeConverter in propertygrid only converts from string, not to -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -