From 1824e2e8db5f045f504973589ddfe80d5ca73aa4 Mon Sep 17 00:00:00 2001 From: Dan Croak Date: Sun, 9 Aug 2009 12:54:51 -0400 Subject: [PATCH] [#3023] deprecation warning for routes_for_controller_and_action. use routes_for --- .../lib/action_controller/routing/route_set.rb | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/actionpack/lib/action_controller/routing/route_set.rb b/actionpack/lib/action_controller/routing/route_set.rb index 040a7e2..813de74 100644 --- a/actionpack/lib/action_controller/routing/route_set.rb +++ b/actionpack/lib/action_controller/routing/route_set.rb @@ -464,6 +464,7 @@ module ActionController end def routes_for_controller_and_action(controller, action) + ActionSupport::Deprecation.warn "routes_for_controller_and_action() has been deprecated. Please use routes_for()" selected = routes.select do |route| route.matches_controller_and_action? controller, action end -- 1.6.2.2