mirror of https://github.com/rails/rails
folding async_exec to exec
This commit is contained in:
parent
03e4ea5290
commit
28a18b5988
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue