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:
commit
313bf87f37
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue