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