Skip to content
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

use the ActiveModel::Name#human instead of #to_s for human names #5625

Merged
merged 1 commit into from May 12, 2022

Conversation

no-reply
Copy link
Member

when grouping relationship presenters for display in the show view, calling
#to_s results in a Ruby style model name. we want to display the human name,
which ActiveModel supports via #human.

the view also calls String#humanize which should be a no-op in most cases
after this, but still seems appropriate.

fixes #5587.

@samvera/hyrax-code-reviewers

dunn
dunn previously approved these changes May 12, 2022
when grouping relationship presenters for display in the show view, calling
`#to_s` results in a Ruby style model name. we want to display the human name,
which `ActiveModel` supports via `#human`.

the view also calls `String#humanize` which should be a no-op in most cases
after this, but still seems appropriate.

fixes #5587.
@no-reply
Copy link
Member Author

@dunn oops, i guess i misspelled "Collection", because of my strong attention to detail.

fixed now and rebuilding.

1 similar comment
@no-reply
Copy link
Member Author

@dunn oops, i guess i misspelled "Collection", because of my strong attention to detail.

fixed now and rebuilding.

@no-reply no-reply merged commit 1ce05c6 into main May 12, 2022
@no-reply no-reply deleted the model-name-human branch May 12, 2022 23:48
@dlpierce dlpierce added the notes-bugfix Release Notes: Fixed a bug label Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes-bugfix Release Notes: Fixed a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"hyrax/pcdm" verbiage appears in label for Relations section of work view page (nurax-pg)
3 participants