method

clear!

rails latest stable - Class: ActionController::Routing::RouteSet::NamedRouteCollection

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.

clear!()
public

No documentation available.

# File actionpack/lib/action_controller/routing/route_set.rb, line 73
        def clear!
          @routes = {}
          @helpers = []

          @module ||= Module.new
          @module.instance_methods.each do |selector|
            @module.class_eval { remove_method selector }
          end
        end