Skip to content

Commit c9eaa7c

Browse files
committedNov 29, 2014
cache digests need an initializer to work with haml
rails/cache_digests#46
1 parent cd63b8e commit c9eaa7c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎config/initializers/haml.rb

+5
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@
99
Haml.init_rails(binding)
1010
end
1111

12+
# enable cache_digests for haml templates...
13+
# https://github.com/rails/cache_digests/pull/46
14+
# UPGRADE - this can go away once we use rails4 with haml_rails v5
15+
CacheDigests::DependencyTracker.register_tracker :haml, CacheDigests::DependencyTracker::ERBTracker
16+

0 commit comments

Comments
 (0)
Please sign in to comment.