instance method
lease
Ruby on Rails 4.2.9
Since v3.2.22.5Signature
lease()
No documentation comment.
Source
# 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
Defined in activerecord/lib/active_record/connection_adapters/abstract_adapter.rb line 154
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::AbstractAdapter