diff options
author | Yoshiyuki Hirano <yhirano@me.com> | 2017-08-26 17:22:30 +0900 |
---|---|---|
committer | Yoshiyuki Hirano <yhirano@me.com> | 2017-08-27 14:01:29 +0900 |
commit | a2f2d2617b144b616700af4fe0f4c184d15cee66 (patch) | |
tree | ff081d373ec1fd76feb9022e180b7bd684b829f4 /activerecord/lib/active_record/persistence.rb | |
parent | 46c2e93051ab33157c584292a2743f9482e99582 (diff) | |
download | rails-a2f2d2617b144b616700af4fe0f4c184d15cee66.tar.gz rails-a2f2d2617b144b616700af4fe0f4c184d15cee66.tar.bz2 rails-a2f2d2617b144b616700af4fe0f4c184d15cee66.zip |
Use tt in doc for ActiveRecord [ci skip]
Diffstat (limited to 'activerecord/lib/active_record/persistence.rb')
-rw-r--r-- | activerecord/lib/active_record/persistence.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb index 1297e0cde7..fbbf9082cc 100644 --- a/activerecord/lib/active_record/persistence.rb +++ b/activerecord/lib/active_record/persistence.rb @@ -353,7 +353,7 @@ module ActiveRecord # Wrapper around #increment that writes the update to the database. # Only +attribute+ is updated; the record itself is not saved. # This means that any other modified attributes will still be dirty. - # Validations and callbacks are skipped. Supports the `touch` option from + # Validations and callbacks are skipped. Supports the +touch+ option from # +update_counters+, see that for more. # Returns +self+. def increment!(attribute, by = 1, touch: nil) @@ -374,7 +374,7 @@ module ActiveRecord # Wrapper around #decrement that writes the update to the database. # Only +attribute+ is updated; the record itself is not saved. # This means that any other modified attributes will still be dirty. - # Validations and callbacks are skipped. Supports the `touch` option from + # Validations and callbacks are skipped. Supports the +touch+ option from # +update_counters+, see that for more. # Returns +self+. def decrement!(attribute, by = 1, touch: nil) |