Skip to content
This repository
Browse code

Correcting ActiveRecord::Core#encode_with docs

  • Loading branch information...
commit 89f2c94c22421cffb887f70a01362dcd747ae49a 1 parent 80d3a0e
Josef Šimánek simi authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  activerecord/lib/active_record/core.rb
2  activerecord/lib/active_record/core.rb
@@ -243,7 +243,7 @@ def initialize_dup(other)
243 243 # end
244 244 # coder = {}
245 245 # Post.new.encode_with(coder)
246   - # coder # => { 'id' => nil, ... }
  246 + # coder # => {"attributes" => {"id" => nil, ... }}
247 247 def encode_with(coder)
248 248 coder['attributes'] = attributes
249 249 end

0 comments on commit 89f2c94

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