HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/ruby-3.0.2/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::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