Displaying 1 result from an estimated 1 matches for "lock_with".
Did you mean:
mock_with
2013 Feb 25
7
Optimistic Locking Enhancements: Gem or Core?
...ng the protection useless.
It seems like this could all be handled in rails core by introspecting the
form object and injecting the lock_version as we do with the id and :method
currently. I''m having problems figuring out how to address it on the UJS
side. My current idea is to add a lock_with: option to link_to that works
similarly to :remote, :method, :confirm, etc. Also, I can''t see any
obviously clean way to handle this magically wrt strong_parameters since
there is nothing inherent in strong_parameters that provides knowledge
about the model that may eventually be crea...