instance method
loaded?
Ruby on Rails edge
Since v4.0.13Signature
loaded?()
Returns true if the association has been loaded, otherwise false.
“‘ person.pets.loaded? # => false person.pets.records person.pets.loaded? # => true “`
Source
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 60
def loaded?
@association.loaded?
end
Defined in activerecord/lib/active_record/associations/collection_proxy.rb line 60
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Associations::CollectionProxy