mirror of
https://github.com/github/rails.git
synced 2026-01-09 14:48:08 -05:00
Fix 1.8.7 incompatible respond_to_missing
This commit is contained in:
committed by
Guillermo Iguaran
parent
6d9050bae4
commit
adf6e30e3a
@@ -72,8 +72,14 @@ module ActiveSupport
|
||||
@logger.send(method, *args)
|
||||
end
|
||||
|
||||
def respond_to_missing?(*args)
|
||||
@logger.respond_to? *args
|
||||
if RUBY_VERSION < '1.9'
|
||||
def respond_to?(*args)
|
||||
super || @logger.respond_to?(*args)
|
||||
end
|
||||
else
|
||||
def respond_to_missing?(*args)
|
||||
@logger.respond_to? *args
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user