method

ensure_required_segments

rails latest stable - Class: ActionController::Routing::RouteBuilder

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

ensure_required_segments(segments)
public

Makes sure that there are no optional segments that precede a required segment. If any are found that precede a required segment, they are made required.