diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-07-30 18:11:24 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-07-30 18:11:24 -0700 |
commit | 3429b0ccba036d09d1e6357e559be05efe3da969 (patch) | |
tree | 0f774e1e8700eed668242b526195bb33bd183472 /actionpack/lib/action_dispatch/routing | |
parent | 20ec0d2aaee0878f819c1d2278e078b1039aee3e (diff) | |
download | rails-3429b0ccba036d09d1e6357e559be05efe3da969.tar.gz rails-3429b0ccba036d09d1e6357e559be05efe3da969.tar.bz2 rails-3429b0ccba036d09d1e6357e559be05efe3da969.zip |
remove useless deup
every call to default_resources_path_names allocates a new hash, no need
to dup
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/route_set.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb index 4155efa03c..96e23c2464 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -327,7 +327,7 @@ module ActionDispatch def initialize(request_class = ActionDispatch::Request) self.named_routes = NamedRouteCollection.new - self.resources_path_names = self.class.default_resources_path_names.dup + self.resources_path_names = self.class.default_resources_path_names self.default_url_options = {} self.request_class = request_class |