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

What is the best way to update just one model attribute #43

Closed
Govinda-Fichtner opened this Issue Jul 6, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@Govinda-Fichtner

Govinda-Fichtner commented Jul 6, 2016

Sync seems to update all changed attributes of a model.

Is there a way to update just one attribute (for instance for status updates)?

Similar to ActiveRecord's update_column.

@stevearc

This comment has been minimized.

Owner

stevearc commented Jul 7, 2016

There's no mechanism for doing that at the moment, but it doesn't seem too involved to add. I'll look into it.

@stevearc

This comment has been minimized.

Owner

stevearc commented Jul 14, 2016

Added the update_field method to the Engine and released in version 0.4.9

@stevearc stevearc closed this Jul 14, 2016

@Govinda-Fichtner

This comment has been minimized.

Govinda-Fichtner commented Jul 14, 2016

@stevearc Awesome that this happened so fast. Really like this for updating my status fields in my models!

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