diff options
author | Vipul A M <vipulnsward@gmail.com> | 2013-04-03 22:49:30 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2013-04-03 23:25:46 +0530 |
commit | 2282964de77eae623284c2cd47cb2f21045b290f (patch) | |
tree | c3f5838623390f8d88875c55e71a01eef6fcb570 /activesupport/lib/active_support | |
parent | db924e1257f37dff441fee7c6e2bbd8ba382d7a6 (diff) | |
download | rails-2282964de77eae623284c2cd47cb2f21045b290f.tar.gz rails-2282964de77eae623284c2cd47cb2f21045b290f.tar.bz2 rails-2282964de77eae623284c2cd47cb2f21045b290f.zip |
Fix some railties test warnings
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/log_subscriber.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/log_subscriber.rb b/activesupport/lib/active_support/log_subscriber.rb index 21a04a9152..c4b64bd1a6 100644 --- a/activesupport/lib/active_support/log_subscriber.rb +++ b/activesupport/lib/active_support/log_subscriber.rb @@ -53,10 +53,9 @@ module ActiveSupport class << self def logger - if defined?(Rails) && Rails.respond_to?(:logger) - @logger ||= Rails.logger + @logger ||= if defined?(Rails) && Rails.respond_to?(:logger) + Rails.logger end - @logger end attr_writer :logger |