aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Seckar <nseckar@gmail.com>2007-09-21 04:52:18 +0000
committerNicholas Seckar <nseckar@gmail.com>2007-09-21 04:52:18 +0000
commit16529a92dd6178b5a8a80c91efda796fc2f4d43f (patch)
treed2179fce9d789b8121f7f4030ac4ebd555326d2c
parent415649760226a7987ba1f8d234c1785d0fa333b0 (diff)
downloadrails-16529a92dd6178b5a8a80c91efda796fc2f4d43f.tar.gz
rails-16529a92dd6178b5a8a80c91efda796fc2f4d43f.tar.bz2
rails-16529a92dd6178b5a8a80c91efda796fc2f4d43f.zip
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
-rw-r--r--actionpack/CHANGELOG2
-rw-r--r--actionpack/lib/action_controller/routing.rb6
2 files changed, 7 insertions, 1 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index e32ba42b24..11f08e5b23 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Don't warn when a path segment precedes a required segment. Closes #9615. [Nicholas Seckar]
+
* Fixed CaptureHelper#content_for to work with the optional content parameter instead of just the block #9434 [sandofsky/wildchild].
* Added Mime::Type.register_alias for dealing with different formats using the same mime type [DHH]. Example:
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: