mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
method redefined warning removed!
This commit is contained in:
@@ -61,6 +61,7 @@ end
|
||||
|
||||
# Recreated here from Active Support because :uncommitted needs it before Rails is available
|
||||
module Kernel
|
||||
remove_method :silence_stderr # Removing old method to prevent method redefined warning
|
||||
def silence_stderr
|
||||
old_stderr = STDERR.dup
|
||||
STDERR.reopen(RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ ? 'NUL:' : '/dev/null')
|
||||
|
||||
Reference in New Issue
Block a user