aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/core.rb
diff options
context:
space:
mode:
authorJosef Šimánek <retro@ballgag.cz>2012-02-06 21:11:03 -0800
committerJosef Šimánek <retro@ballgag.cz>2012-02-06 21:11:03 -0800
commite3e7e0513b695f438583dc85037f4c7798add869 (patch)
tree20be0b5beb8f44dd88b3b8d2750944ad49ded263 /activerecord/lib/active_record/core.rb
parent80d3a0e16e8a3e7f02fc85a0136b52b3a1a19ebc (diff)
parent89f2c94c22421cffb887f70a01362dcd747ae49a (diff)
downloadrails-e3e7e0513b695f438583dc85037f4c7798add869.tar.gz
rails-e3e7e0513b695f438583dc85037f4c7798add869.tar.bz2
rails-e3e7e0513b695f438583dc85037f4c7798add869.zip
Merge pull request #82 from simi/encode_with
Correcting ActiveRecord::Core#encode_with docs
Diffstat (limited to 'activerecord/lib/active_record/core.rb')
-rw-r--r--activerecord/lib/active_record/core.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb
index a2ce620354..97ffd11f2d 100644
--- a/activerecord/lib/active_record/core.rb
+++ b/activerecord/lib/active_record/core.rb
@@ -243,7 +243,7 @@ module ActiveRecord
# end
# coder = {}
# Post.new.encode_with(coder)
- # coder # => { 'id' => nil, ... }
+ # coder # => {"attributes" => {"id" => nil, ... }}
def encode_with(coder)
coder['attributes'] = attributes
end