mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 12:27:16 +08:00
fix stylesheet cache to recover if file is on disk
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user