method
empty?
v4.2.9 -
Show latest stable
- Class:
ActiveRecord::Associations::HasManyAssociation
empty?()public
No documentation available.
# File activerecord/lib/active_record/associations/has_many_association.rb, line 45
def empty?
if has_cached_counter?
size.zero?
else
super
end
end