lib/analytics/rails/railtie.rb in analytics-rails-0.0.1 vs lib/analytics/rails/railtie.rb in analytics-rails-0.0.2
- old
+ new
@@ -1,10 +1,10 @@
module Analytics
module Rails
class Railtie < ::Rails::Railtie
- ActiveSupport.on_load(:action_view) do
- include Analytics::Rails::Helpers
+ initializer 'analytics.helpers' do
+ ActionView::Base.send :include, Analytics::Rails::Helpers
end
end
end
end