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:
commit
96cc2e8335
1 changed files with 5 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue