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