Permalink
Browse files

default value is never used, so make it required

  • Loading branch information...
1 parent d991b67 commit 2b7b136e0a01f8beb19d31571934db5a98774c87 @tenderlove tenderlove committed May 23, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/routing/mapper.rb
View
2 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -16,7 +16,7 @@ class Mapper
:shallow, :blocks, :defaults, :options]
class Constraints #:nodoc:
- def self.new(app, constraints, request = Rack::Request)
+ def self.new(app, constraints, request)
if constraints.any?
super(app, constraints, request)
else

0 comments on commit 2b7b136

Please sign in to comment.