Add two cross links to methods in docs [skip ci]

This commit is contained in:
Martin Bjeldbak Madsen 2019-10-15 22:31:24 +10:00
parent 182b657cf5
commit e8a881a753
No known key found for this signature in database
GPG Key ID: 3D54FD7F2B8CD9E1
2 changed files with 2 additions and 2 deletions

@ -85,7 +85,7 @@ def redirect_to(options = {}, response_options = {})
# * <tt>:fallback_location</tt> - The default fallback location that will be used on missing +Referer+ header.
# * <tt>:allow_other_host</tt> - 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 <tt>redirect_to</tt> 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"]

@ -514,7 +514,7 @@ def save!(*args, **options, &block)
#
# To enforce the object's +before_destroy+ and +after_destroy+
# callbacks or any <tt>:dependent</tt> association
# options, use <tt>#destroy</tt>.
# options, use #destroy.
def delete
_delete_row if persisted?
@destroyed = true