class ActionDispatch::Routing::RouteSet::Generator

def different_controller?

def different_controller?
  return false unless current_controller
  controller.to_param != current_controller.to_param
end