aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activesupport/lib/active_support/file_update_checker.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/file_update_checker.rb b/activesupport/lib/active_support/file_update_checker.rb
index c0b5ca4deb..5f5b264eb9 100644
--- a/activesupport/lib/active_support/file_update_checker.rb
+++ b/activesupport/lib/active_support/file_update_checker.rb
@@ -19,7 +19,7 @@ module ActiveSupport
def initialize(paths, calculate=false, &block)
@paths = paths
@block = block
- @last_update_at = updated_at if calculate
+ @last_update_at = calculate ? updated_at : nil
end
def updated_at
@@ -34,4 +34,4 @@ module ActiveSupport
end
end
end
-end \ No newline at end of file
+end