Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add RouteSet::Mapper#named_route for compatibility with adding progra…

…mmatically named routes

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4395 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit ba4d4ad4a820fe9b7be32cbea79b5e8657150509 1 parent b20c575
@jamis jamis authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 actionpack/lib/action_controller/routing.rb
View
6 actionpack/lib/action_controller/routing.rb
@@ -729,7 +729,11 @@ def initialize(set)
def connect(path, options = {})
@set.add_route(path, options)
end
-
+
+ def named_route(name, path, options = {})
+ @set.add_named_route(name, path, options)
+ end
+
def method_missing(route_name, *args, &proc)
super unless args.length >= 1 && proc.nil?
@set.add_named_route(route_name, *args)
Please sign in to comment.
Something went wrong with that request. Please try again.