HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/doc/activerecord-7.0.4.2/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::BlankLineo;
;	[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