module Middleman::CoreExtensions::Request::InstanceMethods

def current_path=(path)

Returns:
  • (void) -

Parameters:
  • path (String) -- The new current path
def current_path=(path)
  Thread.current[:current_path] = path
  Thread.current[:legacy_request] = ::Thor::CoreExt::HashWithIndifferentAccess.new(
                                                                                     path: path,
                                                                                     params: req ? ::Thor::CoreExt::HashWithIndifferentAccess.new(req.params) : {}
  )
end