From 4596c1a31902806a15c970a0e210942912b139b6 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sat, 21 Nov 2015 22:07:06 +0100 Subject: reset the @updated flag before the callback invocation --- activesupport/lib/active_support/file_evented_update_checker.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'activesupport') diff --git a/activesupport/lib/active_support/file_evented_update_checker.rb b/activesupport/lib/active_support/file_evented_update_checker.rb index 85d392b265..fbc3fa2147 100644 --- a/activesupport/lib/active_support/file_evented_update_checker.rb +++ b/activesupport/lib/active_support/file_evented_update_checker.rb @@ -31,9 +31,8 @@ module ActiveSupport end def execute - @block.call - ensure @updated.make_false + @block.call end def execute_if_updated -- cgit v1.2.3