It depends on how is the application using the lock.
One use case is to load a record, do something with it, and save it.
Optimistic locking here would detect a race condition where some other code
changed the same record meanwhile. That's the scenario the docs refer to
when talking about the loca
It's a good question you raise and from a macro level I think the crux of the
matter has to do with a deeper question: Is Rails for the newbie or for the
experienced developer?
It's no longer 2005 and Rails no longer really needs to be a "big tent" that is
inviting of every hobbyist under the s
Hello,
Please correct the documentation[1] by clicking the the edit button & send
us a pull request. Thanks
--Gaurish
[1]
https://github.com/rails/rails/blob/master/activerecord/lib/active_record/locking/optimistic.rb#L40-L41
--
You received this message because you are subscribed to the G
I'm for to totally drop styles for the scaffolding like Frank suggested and
run hooks instead.
External gems could use that to modify the scafolding process, like
twitter-bootstrap-rails does.
The default style should never be used in production anyway.
On Friday, 17 October 2014 01:55:06 UTC,