Permalink
Browse files

Merge pull request #6632 from route/one_line_code_for_logger

One-liner code for logger in ActionView::Helpers::ControllerHelper
  • Loading branch information...
2 parents 76830e1 + 425608e commit 272a7b902e8eb3528df4a78f94237fac340735c0 @josevalim josevalim 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 272a7b9

Please sign in to comment.