Using public send instead of send for the PerThreadRegistry module.
Prevents you from accidentally calling a protected method.
This commit is contained in:
parent
bb61d2defa
commit
60a5ac78b0
|
@ -35,7 +35,7 @@ module ActiveSupport
|
|||
protected
|
||||
|
||||
def method_missing(*args, &block)
|
||||
instance.send(*args, &block)
|
||||
instance.public_send(*args, &block)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue