method
with_temporary_connection
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::Tasks::DatabaseTasks
with_temporary_connection(db_config, clobber: false, &block)public
No documentation available.
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 539
def with_temporary_connection(db_config, clobber: false, &block) # :nodoc:
with_temporary_pool(db_config, clobber: clobber) do |pool|
pool.with_connection(&block)
end
end