not really answering your question david, but I would put this patch (or any monkey patch) in the lib/monkeys/  directory and then require it in config/initializers/monkeys.rb