instance method
execute
Ruby on Rails 6.0.6
Since v3.2.22.5Signature
execute()
Executes the given block and updates the latest watched files and timestamp.
Source
# File activesupport/lib/active_support/file_update_checker.rb, line 80
def execute
@last_watched = watched
@last_update_at = updated_at(@last_watched)
@block.call
ensure
@watched = nil
@updated_at = nil
end
Defined in activesupport/lib/active_support/file_update_checker.rb line 80
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::FileUpdateChecker