提交 054e2a3d 编写于 作者: A Abdelkader Boudih

Merge pull request #18794 from vipulnsward/fix-dirty

Fix AM#Dirty introduction example
......@@ -26,6 +26,10 @@ module ActiveModel
#
# define_attribute_methods :name
#
# def initialize name = nil
# @name = name
# end
#
# def name
# @name
# end
......@@ -54,7 +58,7 @@ module ActiveModel
#
# A newly instantiated object is unchanged:
#
# person = Person.find_by(name: 'Uncle Bob')
# person = Person.new 'Uncle Bob'
# person.changed? # => false
#
# Change the name:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册