instance method
_find_record
Ruby on Rails 7.0.10
Since v7.0.10 PrivateSignature
_find_record(options)
No documentation comment.
Parameters
-
optionsreq
Source
# File activerecord/lib/active_record/persistence.rb, line 1020
def _find_record(options)
if options && options[:lock]
self.class.preload(strict_loaded_associations).lock(options[:lock]).find(id)
else
self.class.preload(strict_loaded_associations).find(id)
end
end
Defined in activerecord/lib/active_record/persistence.rb line 1020
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Persistence