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

- old
+ new

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