1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

remove useless deup

every call to default_resources_path_names allocates a new hash, no need
to dup
This commit is contained in:
Aaron Patterson 2014-07-30 18:11:24 -07:00
parent 20ec0d2aae
commit 3429b0ccba

View file

@ -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