instance method
execute_if_updated
Ruby on Rails 3.1.12
Since v3.0.20Signature
execute_if_updated()
No documentation comment.
Source
# File activesupport/lib/active_support/file_update_checker.rb, line 28
def execute_if_updated
current_update_at = self.updated_at
if @last_update_at != current_update_at
@last_update_at = current_update_at
@block.call
end
end
Defined in activesupport/lib/active_support/file_update_checker.rb line 28
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::FileUpdateChecker