Permalink
Browse files

remove useless deup

every call to default_resources_path_names allocates a new hash, no need
to dup
  • Loading branch information...
tenderlove committed Jul 31, 2014
1 parent 20ec0d2 commit 3429b0ccba036d09d1e6357e559be05efe3da969
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/routing/route_set.rb
@@ -327,7 +327,7 @@ def self.default_resources_path_names
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

0 comments on commit 3429b0c

Please sign in to comment.