From 16529a92dd6178b5a8a80c91efda796fc2f4d43f Mon Sep 17 00:00:00 2001 From: Nicholas Seckar Date: Fri, 21 Sep 2007 04:52:18 +0000 Subject: Don't warn when a path segment precedes a required segment. Closes #9615. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7523 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/routing.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb index faaecb8964..d1df7e6b43 100644 --- a/actionpack/lib/action_controller/routing.rb +++ b/actionpack/lib/action_controller/routing.rb @@ -819,12 +819,16 @@ module ActionController regexp || "(.*)" end + def optionality_implied? + true + end + class Result < ::Array #:nodoc: def to_s() join '/' end def self.new_escaped(strings) new strings.collect {|str| URI.unescape str} end - end + end end class RouteBuilder #:nodoc: -- cgit v1.2.3