search for: original_process

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

2007 Apr 23
0
request logging: around_filters can't see error responses!
...the case that any error occurred. In this case, Rails would run my after filter before the status was set to 500, so my log would never see STATUS_CODE: 500. My second try was to wrap/override ActionController::Base#process: class ActionController::Base unless instance_methods.include?("original_process") alias_method :original_process, :process def process(*args) # do "before" stuff ret = framework_process(*args) # do "after" stuff return ret end end end This works, but naturally I would prefe...