We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ffcbaff + 9f33843 commit 161f87bCopy full SHA for 161f87b
lib/angular-rails-templates/engine.rb
@@ -37,10 +37,11 @@ class Engine < ::Rails::Engine
37
38
# Sprockets Cache Busting
39
# If ART's version or settings change, expire and recompile all assets
40
+ hash_digest = defined?(ActiveSupport::Digest) ? ActiveSupport::Digest : Digest::MD5
41
app.config.assets.version = [
42
app.config.assets.version,
43
'ART',
- Digest::MD5.hexdigest("#{VERSION}-#{app.config.angular_templates}")
44
+ hash_digest.hexdigest("#{VERSION}-#{app.config.angular_templates}")
45
].join '-'
46
end
47
0 commit comments