method

_filtered_referrer

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: ActionView::Helpers::UrlHelper
_filtered_referrer() protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionview/lib/action_view/helpers/url_helper.rb, line 50
      def _filtered_referrer # :nodoc:
        if controller.respond_to?(:request)
          referrer = controller.request.env["HTTP_REFERER"]
          if referrer && URI(referrer).scheme != "javascript"
            referrer
          end
        end
      rescue URI::InvalidURIError
      end
Register or log in to add new notes.