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/activemodel-6.1.4.1/ri/ActiveModel/Conversion/to_model-i.ri
U:RDoc::AnyMethod[iI"
to_model:ETI"%ActiveModel::Conversion#to_model;TF:publico:RDoc::Markup::Document:@parts[	o:RDoc::Markup::Paragraph;	[I"OIf your object is already designed to implement all of the \Active \Model ;TI"Myou can use the default <tt>:to_model</tt> implementation, which simply ;TI"returns +self+.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[I"class Person
;TI"'  include ActiveModel::Conversion
;TI"	end
;TI"
;TI"person = Person.new
;TI")person.to_model == person # => true
;T:@format0o;
;	[I"OIf your model does not act like an \Active \Model object, then you should ;TI"Ldefine <tt>:to_model</tt> yourself returning a proxy object that wraps ;TI"7your object with \Active \Model compliant methods.;T:
@fileI"#lib/active_model/conversion.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI"Conversion;TcRDoc::NormalModule00