diff options
author | Arun Agrawal <arunagw@gmail.com> | 2015-05-08 23:56:13 +0200 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2015-05-08 23:56:13 +0200 |
commit | 684bbe86cd320549804cb92d4d325e77305b1498 (patch) | |
tree | b2191054aec6cf405703a63d42c676d5599a9fe4 /activemodel | |
parent | 145b7ce53c091c2bd3e6f5e7717f53a9aa4b3026 (diff) | |
parent | 6b557ae709903e51ce30fd6eae9270a0fd32c1b2 (diff) | |
download | rails-684bbe86cd320549804cb92d4d325e77305b1498.tar.gz rails-684bbe86cd320549804cb92d4d325e77305b1498.tar.bz2 rails-684bbe86cd320549804cb92d4d325e77305b1498.zip |
Merge pull request #20081 from gouravtiwari/patch-3
minor rdoc syntax fix [ci skip]
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/dirty.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/dirty.rb b/activemodel/lib/active_model/dirty.rb index c0fc507286..0169c20e0b 100644 --- a/activemodel/lib/active_model/dirty.rb +++ b/activemodel/lib/active_model/dirty.rb @@ -102,10 +102,10 @@ module ActiveModel # person.changes # => {"name" => ["Bill", "Bob"]} # # 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 # 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_change # => ["Bill", "Bill"] |