3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/web-apps/discourse/auto_generated_path.patch

14 lines
392 B
Diff
Raw Normal View History

diff --git a/lib/plugin/instance.rb b/lib/plugin/instance.rb
2022-03-23 17:58:32 +00:00
index 8482ff0210..826d111d65 100644
--- a/lib/plugin/instance.rb
+++ b/lib/plugin/instance.rb
2022-03-23 17:58:32 +00:00
@@ -455,7 +455,7 @@ class Plugin::Instance
end
def auto_generated_path
- File.dirname(path) << "/auto_generated"
+ "#{Rails.root}/public/assets/auto_generated_plugin_assets/#{name}"
end
def after_initialize(&block)