Skip to content
Browse files

Correcting ActiveRecord::Core#encode_with docs

  • Loading branch information...
1 parent 80d3a0e commit 89f2c94c22421cffb887f70a01362dcd747ae49a @simi simi committed Feb 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/core.rb
View
2 activerecord/lib/active_record/core.rb
@@ -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

0 comments on commit 89f2c94

Please sign in to comment.
Something went wrong with that request. Please try again.