File: //usr/local/rvm/gems/default/doc/activerecord-6.1.4.1/ri/ActiveRecord/Core/encode_with-i.ri
U:RDoc::AnyMethod[iI"encode_with:ETI"#ActiveRecord::Core#encode_with;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [ I"GPopulate +coder+ with attributes about this record that should be ;TI"Dserialized. The structure of +coder+ defined in this method is ;TI"Kguaranteed to match the structure of +coder+ passed to the #init_with ;TI"method.;To:RDoc::Markup::BlankLine o;
; [I"
Example:;T@o:RDoc::Markup::Verbatim; [
I"%class Post < ActiveRecord::Base
;TI" end
;TI"coder = {}
;TI"!Post.new.encode_with(coder)
;TI"5coder # => {"attributes" => {"id" => nil, ... }};T:@format0:
@fileI"lib/active_record/core.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(coder);T@FI" Core;TcRDoc::NormalModule00