Permalink
Browse files

Have AbstractController::Logger#process_action return super's value

  • Loading branch information...
1 parent 8c05ca9 commit efbd535f367a8cb46965c91e8edb1786b21bdefb Carl Lerche committed Aug 26, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 actionpack/lib/abstract_controller/logger.rb
@@ -29,7 +29,7 @@ def to_s
# Override process_action in the AbstractController::Base
# to log details about the method.
def process_action(action)
- super
+ retval = super
if logger
log = DelayedLog.new do
@@ -40,6 +40,8 @@ def process_action(action)
logger.info(log)
end
+
+ retval
end
private

0 comments on commit efbd535

Please sign in to comment.