test backwards compatible request.params template values. closes #294

This commit is contained in:
Thomas Reynolds 2012-03-01 13:43:47 -08:00
parent 576463f361
commit 445b66bed7
4 changed files with 13 additions and 1 deletions

View file

@ -265,7 +265,10 @@ class Middleman::Base
# @return [void]
def current_path=(path)
@_current_path = path
@request = ::Thor::CoreExt::HashWithIndifferentAccess.new({ :path => path })
@request = ::Thor::CoreExt::HashWithIndifferentAccess.new({
:path => path,
:params => req ? ::Thor::CoreExt::HashWithIndifferentAccess.new(req.params) : {}
})
end
# Initialize the Middleman project