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

Merge pull request #22333 from harrykiselev/patch-3

[ci skip] Update dirty.rb: documentation fix.
This commit is contained in:
Yves Senn 2015-11-21 11:20:56 +01:00
commit 96cc2e8335

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("Uncle Bob")
# person.changed? # => false
#
# Change the name: