aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/serialization.rb
diff options
context:
space:
mode:
authorZachary Scott <e@zzak.io>2014-06-16 11:35:43 -0700
committerZachary Scott <e@zzak.io>2014-06-16 11:35:43 -0700
commit5b368010f64106f7b87a4306b41adcefa856ab67 (patch)
tree47e0bb605070799a69f3b96aa85db6b5b8974d1d /activemodel/lib/active_model/serialization.rb
parentd60c405be2d09318acc5e30b37553187e0d75319 (diff)
downloadrails-5b368010f64106f7b87a4306b41adcefa856ab67.tar.gz
rails-5b368010f64106f7b87a4306b41adcefa856ab67.tar.bz2
rails-5b368010f64106f7b87a4306b41adcefa856ab67.zip
:scissors: and :nail_care: from d60c405 [ci skip]
Diffstat (limited to 'activemodel/lib/active_model/serialization.rb')
-rw-r--r--activemodel/lib/active_model/serialization.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activemodel/lib/active_model/serialization.rb b/activemodel/lib/active_model/serialization.rb
index 95afc8d935..976f50b13e 100644
--- a/activemodel/lib/active_model/serialization.rb
+++ b/activemodel/lib/active_model/serialization.rb
@@ -25,7 +25,6 @@ module ActiveModel
# person.name = "Bob"
# person.serializable_hash # => {"name"=>"Bob"}
#
-
# An +attributes+ hash must be defined and should contain any attributes you
# need to be serialized. Attributes must be strings, not symbols.
# When called, serializable hash will use instance methods that match the name
@@ -33,8 +32,9 @@ module ActiveModel
# at the private method +read_attribute_for_serialization+.
#
# Most of the time though, either the JSON or XML serializations are needed.
- # Both of these modules automatically include the <tt>ActiveModel::Serialization</tt>
- # module, so there is no need to explicitly include it.
+ # Both of these modules automatically include the
+ # <tt>ActiveModel::Serialization</tt> module, so there is no need to
+ # explicitly include it.
#
# A minimal implementation including XML and JSON would be:
#