Skip to content

Commit

Permalink
Correcting ActiveRecord::Core#encode_with docs
Browse files Browse the repository at this point in the history
  • Loading branch information
simi committed Feb 7, 2012
1 parent 80d3a0e commit 89f2c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89f2c94

Please sign in to comment.