From 15bc6b630f8ac3c57f12b8108e4842c603e86a84 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 17 Aug 2015 13:59:17 -0700 Subject: `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 --- actionpack/lib/action_dispatch/journey/route.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3