Guest User

Untitled

a guest
Apr 24th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. diff --git a/activesupport/lib/active_support/deprecation.rb b/activesupport/lib/active_support/deprecation.rb
  2. index 540be29..151ae5a 100644
  3. --- a/activesupport/lib/active_support/deprecation.rb
  4. +++ b/activesupport/lib/active_support/deprecation.rb
  5. @@ -13,7 +13,7 @@ module ActiveSupport
  6. $stderr.puts callstack.join("\n ") if debug
  7. },
  8. 'development' => Proc.new { |message, callstack|
  9. - logger = defined?(Rails) ? Rails.logger : Logger.new($stderr)
  10. + logger = (defined?(Rails) && Rails.logger) ? Rails.logger : Logger.new($stderr)
  11. logger.warn message
  12. logger.debug callstack.join("\n ") if debug
  13. }
Add Comment
Please, Sign In to add comment