nixpkgs/pkgs/servers/web-apps/discourse/auto_generated_path.patch
talyz e2415dbb8f
discourse: 2.7.9 -> 2.8.0.beta9
Update to the latest beta, since upstream advocates for it. See
https://github.com/NixOS/nixpkgs/issues/146308 for more info.
2021-12-02 10:31:00 +01:00

13 lines
392 B
Diff

diff --git a/lib/plugin/instance.rb b/lib/plugin/instance.rb
index e59a6fbc05..c773a1356e 100644
--- a/lib/plugin/instance.rb
+++ b/lib/plugin/instance.rb
@@ -447,7 +447,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)