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

Provide convenient way to override predefined attributes id and updated_at #24

Open
vadzimrudkouski opened this issue Nov 28, 2012 · 1 comment
Milestone

Comments

@vadzimrudkouski
Copy link

It would be nice to have convenient way to override predefined attributes such as id and updated_at.

There is similar approach in Backbone.Model which helps override id attribute via idAttribute option.

So, it could be like this:

@storage = new Offline.Storage('dreams', this, idAttribute: 'Id' updatedAttribute: 'Modified')
@alekseykulikov
Copy link
Owner

Good idea, added as a feature for next release.

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

No branches or pull requests

2 participants