fix stylesheet cache to recover if file is on disk

This commit is contained in:
Sam
2015-05-22 11:21:16 +10:00
parent 17d843a0ad
commit 96dbeb8608
4 changed files with 50 additions and 11 deletions

View File

@ -118,10 +118,14 @@ class DiscourseStylesheets
end
end
def cache_fullpath
def self.cache_fullpath
"#{Rails.root}/#{CACHE_PATH}"
end
def cache_fullpath
self.class.cache_fullpath
end
def stylesheet_fullpath
"#{cache_fullpath}/#{stylesheet_filename}"
end