class ActionController::AllowBrowser::BrowserBlocker
Constants
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