diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-23 16:05:33 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-23 16:05:33 -0700 |
commit | 2b7b136e0a01f8beb19d31571934db5a98774c87 (patch) | |
tree | 11462a053d3696e9e70654e31ac3558a9ae391ac /actionpack/lib/action_dispatch/routing | |
parent | d991b67040d53ef302ef769ad0659e6d0e8d9c80 (diff) | |
download | rails-2b7b136e0a01f8beb19d31571934db5a98774c87.tar.gz rails-2b7b136e0a01f8beb19d31571934db5a98774c87.tar.bz2 rails-2b7b136e0a01f8beb19d31571934db5a98774c87.zip |
default value is never used, so make it required
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 2fb4e1b0e6..34790092f4 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -16,7 +16,7 @@ module ActionDispatch :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 |