aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-08-17 13:59:17 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-08-17 15:11:20 -0700
commit15bc6b630f8ac3c57f12b8108e4842c603e86a84 (patch)
tree9e4d83efcc866353498dfaa41a74f2139bf93a93
parent0d4834583f3d62c0baa73fc607851ab6c6f39acf (diff)
downloadrails-15bc6b630f8ac3c57f12b8108e4842c603e86a84.tar.gz
rails-15bc6b630f8ac3c57f12b8108e4842c603e86a84.tar.bz2
rails-15bc6b630f8ac3c57f12b8108e4842c603e86a84.zip
`required_defaults` is always passed in, remove conditional
Routes are always constructed with a list of required_defaults, so there's no need to check whether or not it's nil
-rw-r--r--actionpack/lib/action_dispatch/journey/route.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/journey/route.rb b/actionpack/lib/action_dispatch/journey/route.rb
index 7fcb4080e8..f9e0e360c3 100644
--- a/actionpack/lib/action_dispatch/journey/route.rb
+++ b/actionpack/lib/action_dispatch/journey/route.rb
@@ -19,7 +19,7 @@ module ActionDispatch
@constraints = constraints
@defaults = defaults
@required_defaults = nil
- @_required_defaults = required_defaults || []
+ @_required_defaults = required_defaults
@required_parts = nil
@parts = nil
@decorated_ast = nil