1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

If it respond_to? a method, the method should be public_sendable

This commit is contained in:
Akira Matsuda 2020-10-02 14:51:12 +09:00
parent 4e9a4519b7
commit aa050bf2db

View file

@ -78,7 +78,7 @@ module ActiveSupport
initializer "active_support.set_configs" do |app|
app.config.active_support.each do |k, v|
k = "#{k}="
ActiveSupport.send(k, v) if ActiveSupport.respond_to? k
ActiveSupport.public_send(k, v) if ActiveSupport.respond_to? k
end
end