Sha256: e3a9824623bed3540425fa4c153f4cfa42e662efed1aba311e3a70c4c6b26d7e
Contents?: true
Size: 392 Bytes
Versions: 1
Compression:
Stored size: 392 Bytes
Contents
class Browser module ActionController # :nodoc: all def self.included(base) base.send :helper_method, :browser end private def browser @browser ||= Browser.new( :accept_language => request.headers["ACCEPT_LANGUAGE"], :ua => request.headers["USER_AGENT"] ) end end end ActionController::Base.send :include, Browser::ActionController
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
browser-0.1.0 | lib/browser/action_controller.rb |