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:
parent
3d8a7c0e64
commit
ea0617e789
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(name: "Uncle Bob")
|
||||
# person.changed? # => false
|
||||
#
|
||||
# Change the name:
|
||||
|
|
Loading…
Reference in a new issue