mirror of
https://github.com/discourse/discourse.git
synced 2025-08-21 19:11:18 +08:00
DEV: Prefer public_send
over send
.
This commit is contained in:
parent
9be70a22cd
commit
152238b4cf
74 changed files with 216 additions and 129 deletions
|
@ -19,7 +19,7 @@ class MiniSqlMultisiteConnection < MiniSql::Postgres::Connection
|
|||
class ParamEncoder
|
||||
def encode(*sql_array)
|
||||
# use active record to avoid any discrepencies
|
||||
ActiveRecord::Base.send(:sanitize_sql_array, sql_array)
|
||||
ActiveRecord::Base.public_send(:sanitize_sql_array, sql_array)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue