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:
parent
80d3a0e16e
commit
89f2c94c22
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ module ActiveRecord
|
||||||
# end
|
# end
|
||||||
# coder = {}
|
# coder = {}
|
||||||
# Post.new.encode_with(coder)
|
# Post.new.encode_with(coder)
|
||||||
# coder # => { 'id' => nil, ... }
|
# coder # => {"attributes" => {"id" => nil, ... }}
|
||||||
def encode_with(coder)
|
def encode_with(coder)
|
||||||
coder['attributes'] = attributes
|
coder['attributes'] = attributes
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue