提交 6b557ae7 编写于 作者: G Gourav Tiwari

minor rdoc syntax fix [ci skip]

上级 145b7ce5
...@@ -102,10 +102,10 @@ module ActiveModel ...@@ -102,10 +102,10 @@ module ActiveModel
# person.changes # => {"name" => ["Bill", "Bob"]} # person.changes # => {"name" => ["Bill", "Bob"]}
# #
# If an attribute is modified in-place then make use of # If an attribute is modified in-place then make use of
# +[attribute_name]_will_change!+ to mark that the attribute is changing. # <tt>[attribute_name]_will_change!</tt> to mark that the attribute is changing.
# Otherwise \Active \Model can't track changes to in-place attributes. Note # Otherwise \Active \Model can't track changes to in-place attributes. Note
# that Active Record can detect in-place modifications automatically. You do # that Active Record can detect in-place modifications automatically. You do
# not need to call +[attribute_name]_will_change!+ on Active Record models. # not need to call <tt>[attribute_name]_will_change!</tt> on Active Record models.
# #
# person.name_will_change! # person.name_will_change!
# person.name_change # => ["Bill", "Bill"] # person.name_change # => ["Bill", "Bill"]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册