From e8a881a753c5b8f029924e1b79229540f8908714 Mon Sep 17 00:00:00 2001 From: Martin Bjeldbak Madsen Date: Tue, 15 Oct 2019 22:31:24 +1000 Subject: [PATCH] Add two cross links to methods in docs [skip ci] --- actionpack/lib/action_controller/metal/redirecting.rb | 2 +- activerecord/lib/active_record/persistence.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actionpack/lib/action_controller/metal/redirecting.rb b/actionpack/lib/action_controller/metal/redirecting.rb index 67c198d150..11d462855d 100644 --- a/actionpack/lib/action_controller/metal/redirecting.rb +++ b/actionpack/lib/action_controller/metal/redirecting.rb @@ -85,7 +85,7 @@ module ActionController # * :fallback_location - The default fallback location that will be used on missing +Referer+ header. # * :allow_other_host - Allow or disallow redirection to the host that is different to the current host, defaults to true. # - # All other options that can be passed to redirect_to are accepted as + # All other options that can be passed to #redirect_to are accepted as # options and the behavior is identical. def redirect_back(fallback_location:, allow_other_host: true, **args) referer = request.headers["Referer"] diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb index fd84007023..bfb73ae5f5 100644 --- a/activerecord/lib/active_record/persistence.rb +++ b/activerecord/lib/active_record/persistence.rb @@ -514,7 +514,7 @@ module ActiveRecord # # To enforce the object's +before_destroy+ and +after_destroy+ # callbacks or any :dependent association - # options, use #destroy. + # options, use #destroy. def delete _delete_row if persisted? @destroyed = true