Merge pull request #37478 from martinbjeldbak/update-documentation-link
Documentation: Add two RDoc links to methods
This commit is contained in:
commit
be3d9daaa3
|
@ -85,7 +85,7 @@ module ActionController
|
||||||
# * <tt>:fallback_location</tt> - The default fallback location that will be used on missing +Referer+ header.
|
# * <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.
|
# * <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.
|
# options and the behavior is identical.
|
||||||
def redirect_back(fallback_location:, allow_other_host: true, **args)
|
def redirect_back(fallback_location:, allow_other_host: true, **args)
|
||||||
referer = request.headers["Referer"]
|
referer = request.headers["Referer"]
|
||||||
|
|
|
@ -514,7 +514,7 @@ module ActiveRecord
|
||||||
#
|
#
|
||||||
# To enforce the object's +before_destroy+ and +after_destroy+
|
# To enforce the object's +before_destroy+ and +after_destroy+
|
||||||
# callbacks or any <tt>:dependent</tt> association
|
# callbacks or any <tt>:dependent</tt> association
|
||||||
# options, use <tt>#destroy</tt>.
|
# options, use #destroy.
|
||||||
def delete
|
def delete
|
||||||
_delete_row if persisted?
|
_delete_row if persisted?
|
||||||
@destroyed = true
|
@destroyed = true
|
||||||
|
|
Loading…
Reference in New Issue