Skip to content

Instantly share code, notes, and snippets.

Created May 21, 2015 10:01
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 anonymous/75a2d60b7643066b3c32 to your computer and use it in GitHub Desktop.
Save anonymous/75a2d60b7643066b3c32 to your computer and use it in GitHub Desktop.
class HttpRequest
def request_new
puts 'before request'
result = request_old
puts 'after request'
result
end
alias_method :request_old, :request
alias_method :request, :request_new
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment