1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Update dirty.rb: documentation fix.

ActiveModel::Dirty module documentation fix.
This commit is contained in:
Harry V. Kiselev 2015-11-19 00:45:54 +03:00
parent 3d8a7c0e64
commit ea0617e789

View file

@ -26,6 +26,10 @@ module ActiveModel
#
# define_attribute_methods :name
#
# def initialize(name)
# @name = name
# end
#
# def name
# @name
# end
@ -54,7 +58,7 @@ module ActiveModel
#
# A newly instantiated +Person+ object is unchanged:
#
# person = Person.new
# person = Person.new(name: "Uncle Bob")
# person.changed? # => false
#
# Change the name: