instance method
length
Ruby on Rails 6.1.7.10
Since v4.2.9Signature
length()
Returns the number of elements in the rows array.
Source
# File activerecord/lib/active_record/result.rb, line 52
def length
@rows.length
end
Defined in activerecord/lib/active_record/result.rb line 52
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Result