FIX: Plugin image assets in production (#25547)

Followup to 1757a688c4
This commit is contained in:
David Taylor 2024-02-02 19:06:16 +00:00 committed by GitHub
parent 9961163e82
commit 1df9186526
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -735,6 +735,9 @@ class Plugin::Instance
seed_data.each { |key, value| DiscoursePluginRegistry.register_seed_data(key, value) }
# Allow plugins to `register_asset` for images under /assets
Rails.configuration.assets.paths << File.dirname(path) + "/assets"
# Automatically include rake tasks
Rake.add_rakelib(File.dirname(path) + "/lib/tasks")