Skip to Content Skip to Search

class ActionController::AllowBrowser::BrowserBlocker

Constants

{
modern: { safari: 17.2, chrome: 119, firefox: 121, opera: 104, ie: false }
}

Attributes

[R] request
[R] versions

Public class methods

Source code GitHub
# File actionpack/lib/action_controller/metal/allow_browser.rb, line 69
def initialize(request, versions:)
  @request, @versions = request, versions
end

Public instance methods

Source code GitHub
# File actionpack/lib/action_controller/metal/allow_browser.rb, line 73
def blocked?
  user_agent_version_reported? && unsupported_browser?
end

Definition files