instance method
lease
Ruby on Rails 4.1.16
Since v3.2.22.5Signature
lease()
No documentation comment.
Source
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 115
def lease
synchronize do
unless in_use
@in_use = true
@last_use = Time.now
end
end
end
Defined in activerecord/lib/active_record/connection_adapters/abstract_adapter.rb line 115
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::AbstractAdapter