mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Remove unused loader argument from Plugin initializer
This commit is contained in:
parent
b646fc5223
commit
62eae2683d
2 changed files with 4 additions and 5 deletions
|
@ -10,6 +10,9 @@
|
||||||
* Your bugfix goes here (#Github Number)
|
* Your bugfix goes here (#Github Number)
|
||||||
* Windows update extconf.rb for use with ssp and varied Ruby/MSYS2 combinations (#2069)
|
* Windows update extconf.rb for use with ssp and varied Ruby/MSYS2 combinations (#2069)
|
||||||
|
|
||||||
|
* Refactor
|
||||||
|
* Remove unused loader argument from Plugin initializer (#2095)
|
||||||
|
|
||||||
## 4.3.1 and 3.12.2 / 2019-12-05
|
## 4.3.1 and 3.12.2 / 2019-12-05
|
||||||
|
|
||||||
* Security
|
* Security
|
||||||
|
|
|
@ -10,7 +10,7 @@ module Puma
|
||||||
|
|
||||||
def create(name)
|
def create(name)
|
||||||
if cls = Plugins.find(name)
|
if cls = Plugins.find(name)
|
||||||
plugin = cls.new(Plugin)
|
plugin = cls.new
|
||||||
@instances << plugin
|
@instances << plugin
|
||||||
return plugin
|
return plugin
|
||||||
end
|
end
|
||||||
|
@ -104,10 +104,6 @@ module Puma
|
||||||
Plugins.register name, cls
|
Plugins.register name, cls
|
||||||
end
|
end
|
||||||
|
|
||||||
def initialize(loader)
|
|
||||||
@loader = loader
|
|
||||||
end
|
|
||||||
|
|
||||||
def in_background(&blk)
|
def in_background(&blk)
|
||||||
Plugins.add_background blk
|
Plugins.add_background blk
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue