Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
msalvadores opened this issue Jan 29, 2013 · 0 comments
Open

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

msalvadores opened this issue Jan 29, 2013 · 0 comments
Assignees
Milestone

Comments

@msalvadores
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant