diff --git a/lib/angular-rails-templates/engine.rb b/lib/angular-rails-templates/engine.rb index 3c509a8..20467d0 100644 --- a/lib/angular-rails-templates/engine.rb +++ b/lib/angular-rails-templates/engine.rb @@ -37,10 +37,11 @@ class Engine < ::Rails::Engine # Sprockets Cache Busting # If ART's version or settings change, expire and recompile all assets + hash_digest = defined?(ActiveSupport::Digest) ? ActiveSupport::Digest : Digest::MD5 app.config.assets.version = [ app.config.assets.version, 'ART', - Digest::MD5.hexdigest("#{VERSION}-#{app.config.angular_templates}") + hash_digest.hexdigest("#{VERSION}-#{app.config.angular_templates}") ].join '-' end