mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 12:05:43 +08:00
FIX: Plugin image assets in production (#25547)
Followup to 1757a688c4749968db8e27623b975fc57519b97a
This commit is contained in:
parent
9961163e82
commit
1df9186526
@ -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")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user