lib/brauser/hooks.rb in brauser-3.3.2 vs lib/brauser/hooks.rb in brauser-4.0.0

- old
+ new

@@ -1,6 +1,5 @@ -# encoding: utf-8 # # This file is part of the brauser gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>. # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php. # @@ -20,10 +19,10 @@ # # @param force [Boolean] If to force detection. # @return [Browser] The detected browser. def browser(force = false) @browser = nil if force - @browser ||= Browser.new(request.headers["User-Agent"], request.headers["Accept-Language"]) + @browser ||= ::Brauser::Browser.new(request.headers["User-Agent"], request.headers["Accept-Language"]) end end end end