Method: ActiveSupport::FileUpdateChecker#execute_if_updated

Defined in:
activesupport/lib/active_support/file_update_checker.rb

#execute_if_updatedObject

Execute the block given if updated.



92
93
94
95
96
97
98
99
100
# File 'activesupport/lib/active_support/file_update_checker.rb', line 92

def execute_if_updated
  if updated?
    yield if block_given?
    execute
    true
  else
    false
  end
end