lib/analytics/rails/railtie.rb in analytics-rails-4.0.0.0 vs lib/analytics/rails/railtie.rb in analytics-rails-4.0.0.1

- old
+ new

@@ -1,12 +1,14 @@ module Analytics module Rails class Railtie < ::Rails::Railtie - initializer 'analytics.extensions' do - ::ActionView::Base.include( - Analytics::Rails::Extensions::ActionView::Base - ) + initializer 'analytics.action_view' do + ActiveSupport.on_load :action_view do + ::ActionView::Base.include( + Analytics::Rails::Extensions::ActionView::Base + ) + end end end end end