Permalink
Browse files

Note the ways #match may be called

  • Loading branch information...
1 parent b8f2a43 commit 007c41100b06db53630ce60048eaa625a9e955ee @jeremy jeremy committed Feb 6, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -1249,6 +1249,9 @@ def shallow?
parent_resource.instance_of?(Resource) && @scope[:shallow]
end
+ # match 'path' => 'controller#action'
+ # match 'path', as: 'controller#action'
@carlosantoniodasilva

carlosantoniodasilva Feb 6, 2012

Owner

I think you meant to: 'controller#action' instead, not?

+ # match 'path', 'otherpath', on: :member, via: :get
def match(path, *rest)
if rest.empty? && Hash === path
options = path

0 comments on commit 007c411

Please sign in to comment.