stop running exec_sql through active record
this avoids double logging
This commit is contained in:
parent
b778b19318
commit
1f044350f6
|
@ -4,7 +4,7 @@ class ActiveRecord::Base
|
|||
def self.exec_sql(*args)
|
||||
conn = ActiveRecord::Base.connection
|
||||
sql = ActiveRecord::Base.send(:sanitize_sql_array, args)
|
||||
conn.execute(sql)
|
||||
conn.raw_connection.exec(sql)
|
||||
end
|
||||
|
||||
def self.exec_sql_row_count(*args)
|
||||
|
|
Loading…
Reference in New Issue