Class: RubyOptimize::Hooks
- Inherits:
-
Object
- Object
- RubyOptimize::Hooks
- Defined in:
- lib/ruby_optimize/hooks.rb
Class Method Summary collapse
Class Method Details
.init ⇒ Object
3 4 5 6 7 8 |
# File 'lib/ruby_optimize/hooks.rb', line 3 def self.init ActiveSupport.on_load(:action_view) do ::ActionView::Base.send :include, RubyOptimize::ActionViewExtension ::ActionController::Base.send :include, RubyOptimize::ActionControllerExtension end end |