lib/coffee/rails/template_handler.rb in coffee-rails-4.2.1 vs lib/coffee/rails/template_handler.rb in coffee-rails-4.2.2

- old
+ new

@@ -13,6 +13,10 @@ end end ActiveSupport.on_load(:action_view) do ActionView::Template.register_template_handler :coffee, Coffee::Rails::TemplateHandler + # Loads DependencyTracker + require 'action_view/dependency_tracker' + # Register ERB DependencyTracker for .coffee files to enable digesting. + ActionView::DependencyTracker.register_tracker :coffee, ActionView::DependencyTracker::ERBTracker end