Skip to content

Instantly share code, notes, and snippets.

@coderjoe
Created December 20, 2010 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coderjoe/749139 to your computer and use it in GitHub Desktop.
Save coderjoe/749139 to your computer and use it in GitHub Desktop.
This is a really bad idea
require 'uri'
module ReallyBadIdea
alias_method :old_tick, :`
def `(uri)
begin
URI.parse(uri)
rescue URI::InvalidURIError
old_tick(uri)
end
end
end
include ReallyBadIdea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment