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:
parent
4e525a2a2b
commit
0e4473ca93
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue