1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix typo for redirect_back

indetical -> identical
[skip ci]
This commit is contained in:
Arkadiusz Fal 2016-03-22 19:21:24 +01:00
parent 63f5a98bac
commit 1d6b77cc4d

View file

@ -84,7 +84,7 @@ module ActionController
# redirect_back fallback_location: proc { edit_post_url(@post) } # redirect_back fallback_location: proc { edit_post_url(@post) }
# #
# All options that can be passed to <tt>redirect_to</tt> are accepted as # All options that can be passed to <tt>redirect_to</tt> are accepted as
# options and the behavior is indetical. # options and the behavior is identical.
def redirect_back(fallback_location:, **args) def redirect_back(fallback_location:, **args)
if referer = request.headers["Referer"] if referer = request.headers["Referer"]
redirect_to referer, **args redirect_to referer, **args