File: //usr/local/rvm/gems/default/doc/activemodel-6.1.4.1/ri/ActiveModel/Conversion/cdesc-Conversion.ri
U:RDoc::NormalModule[iI"Conversion:ETI"ActiveModel::Conversion;T0o:RDoc::Markup::Document:@parts[o;;[S:RDoc::Markup::Heading:
leveli: textI"Active \Model \Conversion;To:RDoc::Markup::BlankLine o:RDoc::Markup::Paragraph;[I"RHandles default conversions: to_model, to_key, to_param, and to_partial_path.;T@o;
;[I"6Let's take for example this non-persisted object.;T@o:RDoc::Markup::Verbatim;[I"class ContactMessage
;TI"' include ActiveModel::Conversion
;TI"
;TI"6 # ContactMessage are never persisted in the DB
;TI" def persisted?
;TI" false
;TI" end
;TI" end
;TI"
;TI"cm = ContactMessage.new
;TI""cm.to_model == cm # => true
;TI"!cm.to_key # => nil
;TI"!cm.to_param # => nil
;TI"?cm.to_partial_path # => "contact_messages/contact_message";T:@format0:
@fileI"#lib/active_model/conversion.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[ [ [ [[I"
class;T[[:public[ [:protected[ [:private[ [I"
instance;T[[;[ [I"to_key;TI"#lib/active_model/conversion.rb;T[I"
to_model;T@;[I"
to_param;T@;[I"to_partial_path;T@;[;[ [;[ [[I"ActiveSupport::Concern;To;;[ ;@&;0@;[U:RDoc::Context::Section[i 0o;;[ ;0;0[@&I"ActiveModel;TcRDoc::NormalModule