Permalink
Browse files

One-liner code for logger in ActionView::Helpers::ControllerHelper

  • Loading branch information...
1 parent 76830e1 commit 425608e761ff1b89490397982407b3cb44cd1d7e @route route committed Jun 5, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 actionpack/lib/action_view/helpers/controller_helper.rb
@@ -18,11 +18,7 @@ def assign_controller(controller)
end
def logger
- if controller.respond_to?(:logger)
- controller.logger
- else
- nil
- end
+ controller.logger if controller.respond_to?(:logger)
end
end
end

0 comments on commit 425608e

Please sign in to comment.