Skip to content

Commit

Permalink
✂️ and 💅 from d60c405 [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Scott committed Jun 16, 2014
1 parent d60c405 commit 5b36801
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions activemodel/lib/active_model/serialization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ 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
# of the attributes hash's keys. In order to override this behavior, take a look
# 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:
#
Expand Down

0 comments on commit 5b36801

Please sign in to comment.