Files
rails/activerecord/lib/active_record
Tobias Bielohlawek 4db72b702f fixed a 'RecordNotFound' bug when calling 'reload' on a object which doesn't met the default_scope conditions, added test [#3166 status:resolved]
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>
2010-02-26 11:14:16 +01:00
..
2010-01-17 03:26:20 +05:30
2010-01-17 03:26:20 +05:30
2010-02-01 02:02:42 -08:00
2010-02-12 22:31:03 +00:00
2010-01-04 16:22:46 -06:00