File: //usr/local/rvm/gems/ruby-2.5.9/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::BlankLine o: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