diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-10 16:31:59 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-10 16:31:59 -0800 |
commit | 4beaa9b839c3ab0574a18174018adae109212c0e (patch) | |
tree | d5d7f7727dd0f8f594b8faafd3736eae7996ece6 | |
parent | cde99812f1fcd521552db8f7cf4e183088c157db (diff) | |
download | rails-4beaa9b839c3ab0574a18174018adae109212c0e.tar.gz rails-4beaa9b839c3ab0574a18174018adae109212c0e.tar.bz2 rails-4beaa9b839c3ab0574a18174018adae109212c0e.zip |
Try to keep people from calling the deprecated flush method.
-rw-r--r-- | activesupport/lib/active_support/buffered_logger.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/buffered_logger.rb b/activesupport/lib/active_support/buffered_logger.rb index fc01225966..71308eed67 100644 --- a/activesupport/lib/active_support/buffered_logger.rb +++ b/activesupport/lib/active_support/buffered_logger.rb @@ -107,6 +107,11 @@ Automatic directory creation for '#{log}' is deprecated. Please make sure the d end deprecate :flush + def respond_to?(method, include_private = false) + return false if method.to_s == "flush" + super + end + def close @log.close end |