public Method

RouteSet.clear!

There's no documentation for this item.

Source Code

# File action_controller/routing/route_set.rb, line 213
def clear!
  routes.clear
  named_routes.clear
  @combined_regexp = nil
  @routes_by_controller = nil
  # This will force routing/recognition_optimization.rb
  # to refresh optimisations.
  @compiled_recognize_optimized = nil
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.