reorg some of the more stuff
This commit is contained in:
parent
4d0ffe11c0
commit
b19e8bc185
7 changed files with 104 additions and 107 deletions
|
@ -158,6 +158,15 @@ module Middleman
|
|||
|
||||
run_hook :initialized
|
||||
|
||||
# This is for making the tests work - since the tests
|
||||
# don't completely reload middleman, I18n.load_path can get
|
||||
# polluted with paths from other test app directories that don't
|
||||
# exist anymore.
|
||||
if ENV["TEST"]
|
||||
::I18n.load_path.delete_if {|path| path =~ %r{tmp/aruba}}
|
||||
::I18n.reload!
|
||||
end
|
||||
|
||||
run_hook :after_configuration
|
||||
|
||||
logger.debug "Loaded extensions:"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue