class ActionDispatch::Routing::Mapper::Mapping

def add_controller_module(controller, modyoule)

def add_controller_module(controller, modyoule)
  if modyoule && !controller.is_a?(Regexp)
    if controller =~ %r{\A/}
      controller[1..-1]
    else
      [modyoule, controller].compact.join("/")
    end
  else
    controller
  end
end