Skip to content

Commit

Permalink
Merge pull request #91 from richseviora/master
Browse files Browse the repository at this point in the history
Register ERBTracker as DependencyTracker for .coffee files to support…
  • Loading branch information
rafaelfranca authored May 5, 2017
2 parents 608c708 + fe7d360 commit aa16fcd
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,4 +15,6 @@ def self.call(template)

ActiveSupport.on_load(:action_view) do
ActionView::Template.register_template_handler :coffee, Coffee::Rails::TemplateHandler
# Register ERB DependencyTracker for .coffee files to enable digesting.
ActionView::DependencyTracker.register_tracker :coffee, ActionView::DependencyTracker::ERBTracker
end

0 comments on commit aa16fcd

Please sign in to comment.