aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-10-10 02:38:56 +0900
committerGitHub <noreply@github.com>2018-10-10 02:38:56 +0900
commit82ac2114a137e4f1a909b24028cd0330752d801c (patch)
tree1311a4ebddbbb4f8caea8b5c2425084e28566823 /activerecord
parenta1ee4a9ff9d4a3cb255365310ead0dc7b739c6be (diff)
parent3969de3e876e003e305b58bd82c82d2079b52e28 (diff)
downloadrails-82ac2114a137e4f1a909b24028cd0330752d801c.tar.gz
rails-82ac2114a137e4f1a909b24028cd0330752d801c.tar.bz2
rails-82ac2114a137e4f1a909b24028cd0330752d801c.zip
Merge pull request #34117 from aergonaut/docs/ActiveRecord--Persistence-belongs_to_touch_method
Add docs to ActiveRecord::Persistence#belongs_to_touch_method [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/persistence.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb
index 6eb2bfb452..8404119631 100644
--- a/activerecord/lib/active_record/persistence.rb
+++ b/activerecord/lib/active_record/persistence.rb
@@ -758,6 +758,8 @@ module ActiveRecord
@_association_destroy_exception = nil
end
+ # The name of the method used to touch a +belongs_to+ association when the
+ # +:touch+ option is used.
def belongs_to_touch_method
:touch
end