提交 89f2c94c 编写于 作者: J Josef Šimánek

Correcting ActiveRecord::Core#encode_with docs

上级 80d3a0e1
......@@ -243,7 +243,7 @@ def initialize_dup(other)
# end
# coder = {}
# Post.new.encode_with(coder)
# coder # => { 'id' => nil, ... }
# coder # => {"attributes" => {"id" => nil, ... }}
def encode_with(coder)
coder['attributes'] = attributes
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册