Method: ActiveRecord::Associations::Preloader#empty?
- Defined in:
- activerecord/lib/active_record/associations/preloader.rb
#empty? ⇒ Boolean
113 114 115 |
# File 'activerecord/lib/active_record/associations/preloader.rb', line 113 def empty? associations.nil? || records.length == 0 end |