Flowdock
method

length

Importance_1
v2.1.0 - Show latest stable - 0 notes - Class: ActiveRecord::Associations::AssociationCollection
length() public

Returns the size of the collection by loading it and calling size on the array. If you want to use this method to check whether the collection is empty, use collection.length.zero? instead of collection.empty?

Show source
Register or log in to add new notes.