diff options
author | Robin Dupret <robin.dupret@gmail.com> | 2015-06-07 16:01:09 +0200 |
---|---|---|
committer | Robin Dupret <robin.dupret@gmail.com> | 2015-06-07 16:01:09 +0200 |
commit | b10c3866d76492d23692076b53abcb30bcea170c (patch) | |
tree | 93ea6f78a3f2d9e2b9e09a84d42f14003bd5d733 /activemodel | |
parent | 911f189f88b49df7fc08e6a82b8f89eed86ab2b5 (diff) | |
download | rails-b10c3866d76492d23692076b53abcb30bcea170c.tar.gz rails-b10c3866d76492d23692076b53abcb30bcea170c.tar.bz2 rails-b10c3866d76492d23692076b53abcb30bcea170c.zip |
Tiny documentation edits [ci skip]
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/serialization.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/serialization.rb b/activemodel/lib/active_model/serialization.rb index c82c4b67f5..f95849eb84 100644 --- a/activemodel/lib/active_model/serialization.rb +++ b/activemodel/lib/active_model/serialization.rb @@ -122,9 +122,9 @@ module ActiveModel # user.notes = [note] # # user.serializable_hash - # #=> {"name" => "Napoleon"} + # # => {"name" => "Napoleon"} # user.serializable_hash(include: { notes: { only: 'title' }}) - # #=> {"name" => "Napoleon", "notes" => [{"title"=>"Battle of Austerlitz"}]} + # # => {"name" => "Napoleon", "notes" => [{"title"=>"Battle of Austerlitz"}]} def serializable_hash(options = nil) options ||= {} |