search for: initialize_with_abort

Displaying 1 result from an estimated 1 matches for "initialize_with_abort".

2006 Sep 20
0
boy, that mongrel_upload_progress handler sucks!
...s being used with -S meaning it''s an actual ruby file. # So, why don''t I use the rb extension? Hell if I know :) Mongrel::HttpHandler.class_eval do # add the default stub method def request_aborted(params) end end # patch the monkey Mongrel::HttpRequest.class_eval do def initialize_with_abort(params, socket, dispatcher) initialize_without_abort(params, socket, dispatcher) dispatcher.request_aborted(params) if @body.nil? && dispatcher end alias_method :initialize_without_abort, :initialize alias_method :initialize, :initialize_with_abort end Set up the handler uri...