1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Correcting ActiveRecord::Core#encode_with docs

This commit is contained in:
Josef Šimánek 2012-02-07 06:09:08 +01:00
parent 80d3a0e16e
commit 89f2c94c22

View file

@ -243,7 +243,7 @@ module ActiveRecord
# end
# coder = {}
# Post.new.encode_with(coder)
# coder # => { 'id' => nil, ... }
# coder # => {"attributes" => {"id" => nil, ... }}
def encode_with(coder)
coder['attributes'] = attributes
end