aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/persistence.rb
diff options
context:
space:
mode:
authorYoshiyuki Hirano <yhirano@me.com>2017-08-26 17:22:30 +0900
committerYoshiyuki Hirano <yhirano@me.com>2017-08-27 14:01:29 +0900
commita2f2d2617b144b616700af4fe0f4c184d15cee66 (patch)
treeff081d373ec1fd76feb9022e180b7bd684b829f4 /activerecord/lib/active_record/persistence.rb
parent46c2e93051ab33157c584292a2743f9482e99582 (diff)
downloadrails-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.rb4
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)