remove discourse stylesheets const warning when auto-reloading

This commit is contained in:
Régis Hanol 2015-02-09 18:53:49 +01:00
parent e9d5c5c0a8
commit f82e8ce5f1
1 changed files with 3 additions and 3 deletions

View File

@ -3,9 +3,9 @@ require_dependency 'distributed_cache'
class DiscourseStylesheets
CACHE_PATH = 'uploads/stylesheet-cache'
MANIFEST_DIR = "#{Rails.root}/tmp/cache/assets/#{Rails.env}"
MANIFEST_FULL_PATH = "#{MANIFEST_DIR}/stylesheet-manifest"
CACHE_PATH ||= 'uploads/stylesheet-cache'
MANIFEST_DIR ||= "#{Rails.root}/tmp/cache/assets/#{Rails.env}"
MANIFEST_FULL_PATH ||= "#{MANIFEST_DIR}/stylesheet-manifest"
@lock = Mutex.new