-
Notifications
You must be signed in to change notification settings - Fork 82
[ISSUE #950] Code quality enhancement - Project Presenter #1011
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,16 +32,16 @@ def archived_date | |
| I18n.l(archived_at, format: :note_date) if archived_at | ||
| end | ||
|
|
||
| def path_to | ||
| { | ||
| project: "/projects/#{slug}", | ||
| projectReports: "/projects/#{slug}/reports", | ||
| projectUsers: "/projects/#{slug}/users", | ||
| projectSettings: "/projects/#{slug}/edit", | ||
| projectJoin: "/projects/#{slug}/join", | ||
| projectUnjoin: "/projects/#{slug}/users/" | ||
| } | ||
| end | ||
| def path_to | ||
| { | ||
| project: project_path(self), | ||
| project_reports: reports_project_path(self), | ||
| project_users: project_users_path(self), | ||
| project_settings: edit_project_path(self), | ||
| project_join: join_project_path(self), | ||
| project_unjoin: "#{project_users_path(self)}/" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. on this specific route it ended with "/" on the .spec file (the project presenter one)
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. checking the original spec/presenters/project_presenter_spec.rb before changes, you can see this specific route is the only one with a "/" on the end, the other ones don't have that. I mantained the original route, keeping it with "/" on the end in all files (including .rb files) |
||
| } | ||
| end | ||
|
|
||
| def self.from_collection(collection) | ||
| collection.map { |item| new(item) } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.