Sha256: affb85012a693eb942ea56581d18c4d7ef88f7aed11aec2663ecec5a2a79d2fb
Contents?: true
Size: 411 Bytes
Versions: 16
Compression:
Stored size: 411 Bytes
Contents
# frozen_string_literal: true require "action_controller/railtie" module Browser module ActionController extend ActiveSupport::Concern included do helper_method(:browser) if respond_to?(:helper_method) end private def browser @browser ||= Browser.new( request.headers["User-Agent"], accept_language: request.headers["Accept-Language"] ) end end end
Version data entries
16 entries across 16 versions & 1 rubygems