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/activemodel-7.0.4.2/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