diff options
author | Dmitry Vorotilin <d.vorotilin@gmail.com> | 2012-06-05 14:06:18 +0400 |
---|---|---|
committer | Dmitry Vorotilin <d.vorotilin@gmail.com> | 2012-06-05 14:16:53 +0400 |
commit | 425608e761ff1b89490397982407b3cb44cd1d7e (patch) | |
tree | ce4e9574e65ebecfdf0d41a8f3248aafcb0f4597 /actionpack | |
parent | 76830e110a73d6db0dafd42fc960686637cbfc7b (diff) | |
download | rails-425608e761ff1b89490397982407b3cb44cd1d7e.tar.gz rails-425608e761ff1b89490397982407b3cb44cd1d7e.tar.bz2 rails-425608e761ff1b89490397982407b3cb44cd1d7e.zip |
One-liner code for logger in ActionView::Helpers::ControllerHelper
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/helpers/controller_helper.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/actionpack/lib/action_view/helpers/controller_helper.rb b/actionpack/lib/action_view/helpers/controller_helper.rb index 0c3806a78c..74ef25f7c1 100644 --- a/actionpack/lib/action_view/helpers/controller_helper.rb +++ b/actionpack/lib/action_view/helpers/controller_helper.rb @@ -18,11 +18,7 @@ module ActionView end def logger - if controller.respond_to?(:logger) - controller.logger - else - nil - end + controller.logger if controller.respond_to?(:logger) end end end |