From d21e5fbc70c54e31b71483452d975448659fac67 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Thu, 1 Aug 2019 17:45:54 +0900 Subject: These methods doesn't have to be `protected` --- actionview/lib/action_view/helpers/url_helper.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'actionview/lib/action_view/helpers/url_helper.rb') diff --git a/actionview/lib/action_view/helpers/url_helper.rb b/actionview/lib/action_view/helpers/url_helper.rb index 1b05d4aa71..cebb2aea4d 100644 --- a/actionview/lib/action_view/helpers/url_helper.rb +++ b/actionview/lib/action_view/helpers/url_helper.rb @@ -42,12 +42,11 @@ module ActionView end end - def _back_url # :nodoc: + private def _back_url # :nodoc: _filtered_referrer || "javascript:history.back()" end - protected :_back_url - def _filtered_referrer # :nodoc: + private def _filtered_referrer # :nodoc: if controller.respond_to?(:request) referrer = controller.request.env["HTTP_REFERER"] if referrer && URI(referrer).scheme != "javascript" @@ -56,7 +55,6 @@ module ActionView end rescue URI::InvalidURIError end - protected :_filtered_referrer # Creates an anchor element of the given +name+ using a URL created by the set of +options+. # See the valid options in the documentation for +url_for+. It's also possible to -- cgit v1.2.3