mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
correct the monkey patch
This commit is contained in:
@ -187,9 +187,11 @@ end
|
|||||||
Rake::Task["assets:precompile"].enhance do
|
Rake::Task["assets:precompile"].enhance do
|
||||||
class Sprockets::Manifest
|
class Sprockets::Manifest
|
||||||
def reload
|
def reload
|
||||||
|
@filename = find_directory_manifest(@directory)
|
||||||
@data = json_decode(File.read(@filename))
|
@data = json_decode(File.read(@filename))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# cause on boot we loaded a blank manifest,
|
# cause on boot we loaded a blank manifest,
|
||||||
# we need to know where all the assets are to precompile CSS
|
# we need to know where all the assets are to precompile CSS
|
||||||
# cause CSS uses asset_path
|
# cause CSS uses asset_path
|
||||||
|
Reference in New Issue
Block a user