mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 03:18:23 +00:00
Allow plugins to specify the value used for require statements. This allows using forked gems in plugins until the original gem gets updated.
This commit is contained in:
parent
2e5413437d
commit
34f9e17eac
@ -216,7 +216,7 @@ class Plugin::Instance
|
||||
spec = Gem::Specification.load spec_file
|
||||
spec.activate
|
||||
unless opts[:require] == false
|
||||
require name
|
||||
require opts[:require_name] ? opts[:require_name] : name
|
||||
end
|
||||
else
|
||||
puts "You are specifying the gem #{name} in #{path}, however it does not exist!"
|
||||
|
Loading…
x
Reference in New Issue
Block a user