make custom css more robust

This commit is contained in:
wvengen 2014-09-02 14:15:59 +02:00
parent 97dc090e4d
commit b5ddbcae21

View file

@ -221,7 +221,7 @@ module ApplicationHelper
# @return [String] path to foodcoop CSS style (with MD5 parameter for caching) # @return [String] path to foodcoop CSS style (with MD5 parameter for caching)
def foodcoop_css_path(options={}) def foodcoop_css_path(options={})
super(options.merge({md5: Digest::MD5.hexdigest(FoodsoftConfig[:custom_css])})) super(options.merge({md5: Digest::MD5.hexdigest(FoodsoftConfig[:custom_css].to_s)}))
end end
# @return [String] stylesheet tag for foodcoop CSS style (+custom_css+ foodcoop config) # @return [String] stylesheet tag for foodcoop CSS style (+custom_css+ foodcoop config)