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?
# File activerecord/lib/active_record/associations/association_collection.rb, line 199
def length
load_target.size
end