Skip to content

Instantly share code, notes, and snippets.

@mkb
Created June 22, 2011 18:43
Show Gist options
  • Save mkb/1040784 to your computer and use it in GitHub Desktop.
Save mkb/1040784 to your computer and use it in GitHub Desktop.
Prevent infinite loop in Autotest by ignoring volatile files
Autotest.add_hook :initialize do |at|
# Prevent infinite loops by ignoring volatile files
%w{.git vendordb log tmp .DS_store Gemfile.lock}.each do |exception|
at.add_exception(exception)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment