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:
@@ -62,7 +62,7 @@ class SqlBuilder
|
||||
|
||||
sql = to_sql
|
||||
if @klass
|
||||
@klass.find_by_sql(ActiveRecord::Base.send(:sanitize_sql_array, [sql, @args]))
|
||||
@klass.find_by_sql(ActiveRecord::Base.public_send(:sanitize_sql_array, [sql, @args]))
|
||||
else
|
||||
if @args == {}
|
||||
ActiveRecord::Base.exec_sql(sql)
|
||||
|
||||
Reference in New Issue
Block a user