Skip to content

Instantly share code, notes, and snippets.

@dmgarland
Created May 15, 2015 13:47
Show Gist options
  • Save dmgarland/a7949613dcccfc45584d to your computer and use it in GitHub Desktop.
Save dmgarland/a7949613dcccfc45584d to your computer and use it in GitHub Desktop.
Here's a monkey patch I found on a client project. What does it do? It takes up a day of a Rails developer's time. DONT DO THIS!
# encoding: utf-8
require 'rake/task'
module Rake
class Task
alias :orig_execute :execute
def execute(args=nil)
orig_execute(args)
rescue => e
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment