-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
6776 remove unused routes #6781
6776 remove unused routes #6781
Conversation
Have you checked if there are any other invalid routes? |
@denschub no, but I will check. |
How did your checks go? |
@denschub just started. Create doc for invalid routes: https://docs.google.com/spreadsheets/d/1rX6KRalSBKGm-aZrqSgDnO-xXmnNI-TGTSK5KybS8vI/edit?usp=sharing But I don't now application well so maybe some of them aren't invalid. So usually it is resources in routes but now action in controller. |
@denschub Finished with document. What are the next steps? |
How about... removing them? :) |
Ok :) |
@@ -7,7 +7,7 @@ | |||
|
|||
Diaspora::Application.routes.draw do | |||
|
|||
resources :report, :except => [:edit, :new] | |||
resources :report, :except => [:edit, :new, :show] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the new Ruby 1.9 hash syntax.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use %i or %I for array of symbols.
@denschub ready. |
Merged as ef72942 Sorry for taking so long to take a look at this. Thank you! |
@theworldbright
PR for #6776