mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
folding async_exec to exec
This commit is contained in:
@@ -521,13 +521,6 @@ module ActiveRecord
|
||||
end
|
||||
|
||||
def exec(sql, name = 'SQL', binds = [])
|
||||
return async_exec(sql, name, binds) if @async
|
||||
|
||||
log(sql, name) do
|
||||
end
|
||||
end
|
||||
|
||||
def async_exec(sql, name, binds)
|
||||
log(sql, name) do
|
||||
unless @statements.key? sql
|
||||
nextkey = "a#{@statements.length + 1}"
|
||||
|
||||
Reference in New Issue
Block a user