mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Prefer public_send over send.
This commit is contained in:
@@ -27,7 +27,7 @@ class ActiveRecord::Base
|
||||
Discourse.deprecate("exec_sql should not be used anymore, please use DB.exec or DB.query instead!")
|
||||
|
||||
conn = ActiveRecord::Base.connection
|
||||
sql = ActiveRecord::Base.send(:sanitize_sql_array, args)
|
||||
sql = ActiveRecord::Base.public_send(:sanitize_sql_array, args)
|
||||
conn.raw_connection.async_exec(sql)
|
||||
end
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ module FreedomPatches
|
||||
SQL
|
||||
|
||||
hostname = `hostname` rescue ""
|
||||
sql = ActiveRecord::Base.send(:sanitize_sql_array, [sql, {
|
||||
sql = ActiveRecord::Base.public_send(:sanitize_sql_array, [sql, {
|
||||
version: version || "",
|
||||
duration: (time.real * 1000).to_i,
|
||||
hostname: hostname,
|
||||
|
||||
Reference in New Issue
Block a user