Project

General

Profile

Actions

Refactor #27763

closed

remove redundant url_for

Added by Amir Fefer over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Rails
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

when `url_for` gets a string it returns the same string

url_for(compute_resource_path(@compute_resource))

equals to:

compute_resource_path(@compute_resource)

therefore there are few cases that url_for is redundant.

Actions

Also available in: Atom PDF