Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Try to keep people from calling the deprecated flush method.

  • Loading branch information...
commit 4beaa9b839c3ab0574a18174018adae109212c0e 1 parent cde9981
@tenderlove tenderlove authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 activesupport/lib/active_support/buffered_logger.rb
View
5 activesupport/lib/active_support/buffered_logger.rb
@@ -107,6 +107,11 @@ def flush
end
deprecate :flush
+ def respond_to?(method, include_private = false)
+ return false if method.to_s == "flush"
+ super
+ end
+
def close
@log.close
end
Please sign in to comment.
Something went wrong with that request. Please try again.