In some cases changing the layout doesn't force the sprite hash to change, so we have to make the layout part of the hash.
This commit is contained in:
parent
8b33471229
commit
ce853df6bf
@ -82,6 +82,7 @@ module Compass
|
|||||||
sum = Digest::MD5.new
|
sum = Digest::MD5.new
|
||||||
sum << SPRITE_VERSION
|
sum << SPRITE_VERSION
|
||||||
sum << path
|
sum << path
|
||||||
|
sum << layout
|
||||||
images.each do |image|
|
images.each do |image|
|
||||||
[:relative_file, :height, :width, :repeat, :spacing, :position, :digest].each do |attr|
|
[:relative_file, :height, :width, :repeat, :spacing, :position, :digest].each do |attr|
|
||||||
sum << image.send(attr).to_s
|
sum << image.send(attr).to_s
|
||||||
|
Loading…
Reference in New Issue
Block a user