aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/routing.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb
index 5d45eb829d..7e71a6057b 100644
--- a/actionpack/lib/action_controller/routing.rb
+++ b/actionpack/lib/action_controller/routing.rb
@@ -538,7 +538,7 @@ module ActionController
def each(&block) @routes.each(&block) end
def method_missing(name, *args)
- return super(name, *args) unless args.length == 2
+ return super(name, *args) unless (1..2).include?(args.length)
route = connect(*args)
NamedRoutes.name_route(route, name)