File: //usr/local/rvm/gems/default/doc/activerecord-6.1.4.1/ri/ActiveRecord/Core/init_with-i.ri
U:RDoc::AnyMethod[iI"init_with:ETI"!ActiveRecord::Core#init_with;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"FInitialize an empty model object from +coder+. +coder+ should be ;TI"Ethe result of previously encoding an Active Record model, using ;TI"#encode_with.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"%class Post < ActiveRecord::Base
;TI" end
;TI"
;TI"/old_post = Post.new(title: "hello world")
;TI"coder = {}
;TI"!old_post.encode_with(coder)
;TI"
;TI"post = Post.allocate
;TI"post.init_with(coder)
;TI""post.title # => 'hello world';T:@format0:
@fileI"lib/active_record/core.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(coder, &block);T@FI" Core;TcRDoc::NormalModule00