Skip to content

Commit

Permalink
Fixes Loading Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
richseviora committed May 5, 2017
1 parent fe7d360 commit 8830566
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/coffee/rails/template_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ def self.call(template)

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

0 comments on commit 8830566

Please sign in to comment.