mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 19:05:30 +08:00
plugins need paths too
This commit is contained in:
parent
aa26f9b2ad
commit
6d5e20fe4a
@ -128,7 +128,7 @@ class Plugin::Instance
|
|||||||
# this allows us to present information about a plugin in the UI
|
# this allows us to present information about a plugin in the UI
|
||||||
# prior to activations
|
# prior to activations
|
||||||
def activate!
|
def activate!
|
||||||
self.instance_eval File.read(path)
|
self.instance_eval File.read(path), path
|
||||||
if auto_assets = generate_automatic_assets!
|
if auto_assets = generate_automatic_assets!
|
||||||
assets.concat auto_assets
|
assets.concat auto_assets
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user