mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
plugins need paths too
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user