aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/persistence.rb
diff options
context:
space:
mode:
authorChris Fung <aergonaut@gmail.com>2018-10-07 14:12:06 -0700
committerChris Fung <aergonaut@gmail.com>2018-10-07 14:12:06 -0700
commit3969de3e876e003e305b58bd82c82d2079b52e28 (patch)
tree433f40cbbf612c10d37f3a5fdb0419e11d64dfb4 /activerecord/lib/active_record/persistence.rb
parente7f45d370ab10ad86a748ff2ec8b34c54d87b0bf (diff)
downloadrails-3969de3e876e003e305b58bd82c82d2079b52e28.tar.gz
rails-3969de3e876e003e305b58bd82c82d2079b52e28.tar.bz2
rails-3969de3e876e003e305b58bd82c82d2079b52e28.zip
Add docs to ActiveRecord::Persistence#belongs_to_touch_method
[ci skip]
Diffstat (limited to 'activerecord/lib/active_record/persistence.rb')
-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 7ceb7d1a55..fd7466dfaf 100644
--- a/activerecord/lib/active_record/persistence.rb
+++ b/activerecord/lib/active_record/persistence.rb
@@ -593,6 +593,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