Flowdock
method

length

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

Returns the size of the collection calling size on the target.

If the collection has been already loaded length and size are equivalent. If not and you are going to need the records anyway this method will take one less query. Otherwise size is more efficient.

Show source
Register or log in to add new notes.