diff options
author | Jamis Buck <jamis@37signals.com> | 2006-06-01 16:00:15 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2006-06-01 16:00:15 +0000 |
commit | ba4d4ad4a820fe9b7be32cbea79b5e8657150509 (patch) | |
tree | 13556ded0f1b4941c23c53cf22585a80478f74d9 /actionpack | |
parent | b20c575ac02373723438468932ceddd97056c9ec (diff) | |
download | rails-ba4d4ad4a820fe9b7be32cbea79b5e8657150509.tar.gz rails-ba4d4ad4a820fe9b7be32cbea79b5e8657150509.tar.bz2 rails-ba4d4ad4a820fe9b7be32cbea79b5e8657150509.zip |
Add RouteSet::Mapper#named_route for compatibility with adding programmatically named routes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4395 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/routing.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb index e27520e2e8..b7eb603463 100644 --- a/actionpack/lib/action_controller/routing.rb +++ b/actionpack/lib/action_controller/routing.rb @@ -729,7 +729,11 @@ module ActionController 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) |