aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/file_update_checker.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-12-12 18:19:28 +0100
committerJosé Valim <jose.valim@gmail.com>2011-12-12 19:41:17 +0100
commit9a51053c1d0fe4db66f82c93454b8fd8e6d7e192 (patch)
treeb7624d9e960be337c53222e8ac6eb5f03244c6b2 /activesupport/lib/active_support/file_update_checker.rb
parent2fdc3ab0f10c6614f37621847ff92e8e17283df5 (diff)
downloadrails-9a51053c1d0fe4db66f82c93454b8fd8e6d7e192.tar.gz
rails-9a51053c1d0fe4db66f82c93454b8fd8e6d7e192.tar.bz2
rails-9a51053c1d0fe4db66f82c93454b8fd8e6d7e192.zip
Update checker returns a boolean if callback was executed or not.
Diffstat (limited to 'activesupport/lib/active_support/file_update_checker.rb')
-rw-r--r--activesupport/lib/active_support/file_update_checker.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/file_update_checker.rb b/activesupport/lib/active_support/file_update_checker.rb
index 9d617b39d4..da96d3e64d 100644
--- a/activesupport/lib/active_support/file_update_checker.rb
+++ b/activesupport/lib/active_support/file_update_checker.rb
@@ -32,6 +32,9 @@ module ActiveSupport
if @last_update_at != current_update_at
@last_update_at = current_update_at
@block.call
+ true
+ else
+ false
end
end
end