mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
4db72b702f7faca7da30a64e45daeee13733762a
The reload method didn't made use of 'with_exclusive_scope' when reloading the object. This lead to a RecordNotFound exception, in case the object doesn't met the default_scope condition (anymore) - which is obviously a bug. This quick fix makes use of with_exclusive_scope in the reload method as well. See test for full example. Signed-off-by: José Valim <jose.valim@gmail.com>
fixed a 'RecordNotFound' bug when calling 'reload' on a object which doesn't met the default_scope conditions, added test [#3166 status:resolved]
Description
No description provided
Languages
Ruby
97.9%
CSS
1.5%
HTML
0.5%