Skip to content
Browse files

Try to keep people from calling the deprecated flush method.

  • Loading branch information...
1 parent cde9981 commit 4beaa9b839c3ab0574a18174018adae109212c0e @tenderlove tenderlove committed Dec 10, 2011
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

0 comments on commit 4beaa9b

Please sign in to comment.
Something went wrong with that request. Please try again.