Permalink
Browse files

Don't need to override this anywhere anymore

  • Loading branch information...
1 parent 07ad499 commit be321b5b0ae5bdf1b4cad929b4b0d7a30c929b18 @josh josh committed Aug 20, 2011
Showing with 4 additions and 10 deletions.
  1. +4 −10 lib/sprockets/digest.rb
@@ -55,19 +55,13 @@ def version=(version)
# digests. Any change in the environment digest will affect all of
# its assets.
def digest
- # Recompute digest for the first time or again after its been cleared
- @digest ||= compute_digest
+ # Compute the initial digest using the implementation class. The
+ # Sprockets release version and custom environment version are
+ # mixed in. So any new releases will affect all your assets.
+ @digest ||= digest_class.new.update(VERSION).update(version.to_s)
# Returned a dupped copy so the caller can safely mutate it with `.update`
@digest.dup
end
-
- protected
- def compute_digest
- # Compute the initial digest using the implementation
- # class. The Sprockets release version and custom environment
- # version are mixed in.
- digest_class.new.update(VERSION).update(version.to_s)
- end
end
end

0 comments on commit be321b5

Please sign in to comment.