method

allow_browser

allow_browser(versions:, block:)
private

No documentation available.

# File actionpack/lib/action_controller/metal/allow_browser.rb, line 53
      def allow_browser(versions,, block))
        require "useragent"

        if BrowserBlocker.new(request, versions: versions).blocked?
          ActiveSupport::Notifications.instrument("browser_block.action_controller", request: request, versions: versions) do
            instance_exec(&block)
          end
        end
      end