Move some explicitly activated extensions to be auto activate
This commit is contained in:
parent
5d4cae2a06
commit
67bb394852
5 changed files with 22 additions and 32 deletions
|
@ -76,7 +76,7 @@ module Middleman
|
|||
end
|
||||
|
||||
# Override application initialization to load `config.rb` and to call lifecycle hooks.
|
||||
def initialize
|
||||
def initialize(&block)
|
||||
super
|
||||
|
||||
self.class.inst = self
|
||||
|
@ -99,6 +99,9 @@ module Middleman
|
|||
end
|
||||
end
|
||||
|
||||
# Evaluate a passed block if given
|
||||
config_context.instance_exec(&block) if block_given?
|
||||
|
||||
run_hook :initialized
|
||||
|
||||
run_hook :before_configuration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue