lib/user_agent/browsers.rb in useragent-0.8.3 vs lib/user_agent/browsers.rb in useragent-0.9.0

- old
+ new

@@ -1,6 +1,6 @@ -require 'user_agent/browsers/all' +require 'user_agent/browsers/base' require 'user_agent/browsers/chrome' require 'user_agent/browsers/gecko' require 'user_agent/browsers/internet_explorer' require 'user_agent/browsers/opera' require 'user_agent/browsers/webkit' @@ -16,12 +16,12 @@ def self.all [InternetExplorer, Chrome, Webkit, Opera, Gecko] end def self.extend(array) - array.extend(All) all.each do |extension| - return array.extend(extension) if extension.extend?(array) + return extension.new(array) if extension.extend?(array) end + array end end end