Run the block passed to #run first when initializing
This commit is contained in:
parent
b598baf813
commit
c117e8e848
|
@ -101,6 +101,7 @@ module Rails
|
|||
def self.run(initializer = nil, config = nil)
|
||||
default.config = config if config
|
||||
default.config ||= Configuration.new
|
||||
yield default.config if block_given?
|
||||
default.run(initializer)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue