Skip to content

Commit

Permalink
Register ERBTracker as DependencyTracker for .coffee files to support…
Browse files Browse the repository at this point in the history
… digest resolution.
  • Loading branch information
richseviora committed Apr 27, 2017
1 parent 608c708 commit fe7d360
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 fe7d360

Please sign in to comment.