aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-01-09 15:33:32 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2013-01-09 15:34:58 -0800
commit8ae9b4623e16f28c7954edcd89fbab2bba99b334 (patch)
tree9fd0b15131d64296e2a14618e7b65d23819999b6 /activesupport
parent23b69c95ac24b6c0faf682e0f8a1f9acc53f43f8 (diff)
downloadrails-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.rb4
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