method
lease
v4.2.7 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::AbstractAdapter
lease()public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 154
def lease
synchronize do
unless in_use?
@owner = Thread.current
end
end
end