diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-01-09 15:33:32 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-01-09 15:34:58 -0800 |
commit | 8ae9b4623e16f28c7954edcd89fbab2bba99b334 (patch) | |
tree | 9fd0b15131d64296e2a14618e7b65d23819999b6 /activesupport | |
parent | 23b69c95ac24b6c0faf682e0f8a1f9acc53f43f8 (diff) | |
download | rails-8ae9b4623e16f28c7954edcd89fbab2bba99b334.tar.gz rails-8ae9b4623e16f28c7954edcd89fbab2bba99b334.tar.bz2 rails-8ae9b4623e16f28c7954edcd89fbab2bba99b334.zip |
adding missing requires
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/log_subscriber.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/log_subscriber.rb b/activesupport/lib/active_support/log_subscriber.rb index a58afc6b9d..21a04a9152 100644 --- a/activesupport/lib/active_support/log_subscriber.rb +++ b/activesupport/lib/active_support/log_subscriber.rb @@ -53,7 +53,9 @@ module ActiveSupport class << self def logger - @logger ||= Rails.logger if defined?(Rails) + if defined?(Rails) && Rails.respond_to?(:logger) + @logger ||= Rails.logger + end @logger end |