Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #82 from simi/encode_with

Correcting ActiveRecord::Core#encode_with docs
  • Loading branch information...
commit e3e7e0513b695f438583dc85037f4c7798add869 2 parents 80d3a0e + 89f2c94
@simi simi authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.