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

Inplace edit and optimistic locking #433

Open
vtt opened this issue Jun 19, 2015 · 1 comment
Open

Inplace edit and optimistic locking #433

vtt opened this issue Jun 19, 2015 · 1 comment

Comments

@vtt
Copy link

vtt commented Jun 19, 2015

The optimisic locking (using :lock_version) works in an Edit action; how to setup inplace edit to respect the optimistic behavior?

@scambra
Copy link
Member

scambra commented Jul 31, 2015

Probably if lock_version is added to data-ie-url (https://github.com/activescaffold/active_scaffold/blob/master/lib/active_scaffold/helpers/list_column_helpers.rb#L251), and using lock_version on do_update_column.

You could try to override inplace_edit_data helper and before_update_save controller method, and let me know if it works, so I add it to active_scaffold

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

2 participants