Module: Brauser::Hooks::RubyOnRails
- Defined in:
- lib/brauser/hooks.rb
Overview
Hook for integration with Ruby on Rails.
Class Method Summary collapse
-
.included(base) ⇒ Object
Includes brauser in ActionController.
Instance Method Summary collapse
-
#browser(force = false) ⇒ Browser
Detects the current browser.
Class Method Details
.included(base) ⇒ Object
Includes brauser in ActionController.
15 16 17 |
# File 'lib/brauser/hooks.rb', line 15 def self.included(base) base.send :helper_method, :browser end |