File: //usr/local/rvm/gems/default/doc/activerecord-6.1.4.1/ri/ActiveRecord/Core/to_ary-i.ri
U:RDoc::AnyMethod[iI"to_ary:ETI"ActiveRecord::Core#to_ary;TF:privateo:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [ I"R+Array#flatten+ will call +#to_ary+ (recursively) on each of the elements of ;TI"Zthe array, and then rescues from the possible +NoMethodError+. If those elements are ;TI"]+ActiveRecord::Base+'s, then this triggers the various +method_missing+'s that we have, ;TI"2which significantly impacts upon performance.;To:RDoc::Markup::BlankLine o;
; [I"]So we can avoid the +method_missing+ hit by explicitly defining +#to_ary+ as +nil+ here.;T@o;
; [I"_See also https://tenderlovemaking.com/2011/06/28/til-its-ok-to-return-nil-from-to_ary.html;T:
@fileI"lib/active_record/core.rb;T:0@omit_headings_from_table_of_contents_below000[ I"();T@FI" Core;TcRDoc::NormalModule00