diff options
author | José Valim <jose.valim@gmail.com> | 2011-12-12 18:19:28 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-12-12 19:41:17 +0100 |
commit | 9a51053c1d0fe4db66f82c93454b8fd8e6d7e192 (patch) | |
tree | b7624d9e960be337c53222e8ac6eb5f03244c6b2 /activesupport/lib | |
parent | 2fdc3ab0f10c6614f37621847ff92e8e17283df5 (diff) | |
download | rails-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')
-rw-r--r-- | activesupport/lib/active_support/file_update_checker.rb | 3 |
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 |