Displaying 1 result from an estimated 1 matches for "strongparamet".
2013 Feb 25
7
Optimistic Locking Enhancements: Gem or Core?
...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 created/updated from said 
parameters.  Current plan there would be to create a module you can include 
in ActionController::StrongParameters that would automatically append 
:lock_version whenever permit is called.  Not sure how to handle if you 
change the lock column name in your model though...
Is this a viable approach for core or would this be better served as a gem 
that just monkey patches everything it needs to if they are p...