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

All these tested schema methods are public

This commit is contained in:
Akira Matsuda 2020-10-02 21:55:37 +09:00
parent 4e525a2a2b
commit 0e4473ca93
2 changed files with 2 additions and 2 deletions

View file

@ -197,7 +197,7 @@ class Mysql2ActiveSchemaTest < ActiveRecord::Mysql2TestCase
end
def method_missing(method_symbol, *arguments)
ActiveRecord::Base.connection.send(method_symbol, *arguments)
ActiveRecord::Base.connection.public_send(method_symbol, *arguments)
end
ruby2_keywords(:method_missing) if respond_to?(:ruby2_keywords, true)
end

View file

@ -104,7 +104,7 @@ class PostgresqlActiveSchemaTest < ActiveRecord::PostgreSQLTestCase
private
def method_missing(method_symbol, *arguments)
ActiveRecord::Base.connection.send(method_symbol, *arguments)
ActiveRecord::Base.connection.public_send(method_symbol, *arguments)
end
ruby2_keywords(:method_missing) if respond_to?(:ruby2_keywords, true)
end