Skip to Content Skip to Search
Methods
B
N

Constants

SETS = { modern: { safari: 17.2, chrome: 120, firefox: 121, opera: 106, ie: false } }
 

Attributes

[R] request
[R] versions

Class Public methods

new(request, versions:)

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

Instance Public methods

blocked?()

# File actionpack/lib/action_controller/metal/allow_browser.rb, line 74
def blocked?
  user_agent_version_reported? && unsupported_browser?
end