Module: NfgUi::Components::Utilities::BrowserDetectable
- Included in:
- Patterns::PageHeader
- Defined in:
- lib/nfg_ui/components/utilities/browser_detectable.rb
Overview
Add browser detection to the desired component
Instance Method Summary collapse
Instance Method Details
#browser ⇒ Object
10 11 12 |
# File 'lib/nfg_ui/components/utilities/browser_detectable.rb', line 10 def browser Browser.new(user_agent: view_context.request.env['HTTP_USER_AGENT']) end |