Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use the
ActiveModel::Name#human
instead of #to_s
for human names
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.
- Loading branch information
tamsin johnson
committed
May 12, 2022
1 parent
9ebda1a
commit 741ad30
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters