ncbo / goo

Graph Oriented Objects (GOO) for Ruby. A RDF/SPARQL based ORM.
http://ncbo.github.io/goo/
Other
15 stars 6 forks source link

Load attributes on demand (not checking for loaded?) #62

Open msalvadores opened 11 years ago

msalvadores commented 11 years ago

It is very annoying to do things like

object.status.load unless object.status.loaded?
object.status.code

The idea is to just load the attribute that is requested by the call and change the object to PartialyLoaded and add the attribute in loaded_attrs.

When implement this we should remove .load in .find.