instance method
execute_if_updated
Ruby on Rails 3.2.22.5
Since v3.0.20Signature
execute_if_updated()
Execute the block given if updated.
Source
# File activesupport/lib/active_support/file_update_checker.rb, line 84
def execute_if_updated
if updated?
execute
true
else
false
end
end
Defined in activesupport/lib/active_support/file_update_checker.rb line 84
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::FileUpdateChecker