method

allow_browser

rails latest stable - Class: ActionController::AllowBrowser

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

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