1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #27823 from kenta-s/fix-broken-example-for-file_update_checker

Fix broken sample code for EventedFileUpdateChecker [ci skip]
This commit is contained in:
Eileen M. Uchitelle 2017-01-27 10:28:28 -05:00 committed by GitHub
commit 313bf87f37

View file

@ -17,7 +17,7 @@ module ActiveSupport
# #
# Example: # Example:
# #
# checker = EventedFileUpdateChecker.new(["/tmp/foo"], -> { puts "changed" }) # checker = ActiveSupport::EventedFileUpdateChecker.new(["/tmp/foo"]) { puts "changed" }
# checker.updated? # checker.updated?
# # => false # # => false
# checker.execute_if_updated # checker.execute_if_updated