From 917428bcce7bb22241bfc07daa5d0ddf9d107775 Mon Sep 17 00:00:00 2001 From: Gabe da Silveira Date: Fri, 14 Nov 2008 01:14:02 -0800 Subject: Make optimized named routes respect all reserved options and tie it into UrlRewriter::RESERVED_OPTIONS so it's DRY Signed-off-by: Michael Koziarski --- actionpack/lib/action_controller/routing/route_set.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionpack/lib/action_controller/routing/route_set.rb') diff --git a/actionpack/lib/action_controller/routing/route_set.rb b/actionpack/lib/action_controller/routing/route_set.rb index ff448490e9..1b8b52ad10 100644 --- a/actionpack/lib/action_controller/routing/route_set.rb +++ b/actionpack/lib/action_controller/routing/route_set.rb @@ -168,6 +168,7 @@ module ActionController # @module.module_eval <<-end_eval # We use module_eval to avoid leaks def #{selector}(*args) + #{generate_optimisation_block(route, kind)} opts = if args.empty? || Hash === args.first -- cgit v1.2.3