Class: RubyOptimize::Hooks

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_optimize/hooks.rb

Class Method Summary collapse

Class Method Details

.initObject



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