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

Default all labels to human_attribute_name instead of raw attr_name #667

Closed
wants to merge 1 commit into from

Conversation

pcantrell
Copy link

Administrate is inconsistent about the default human-visible attribute name. It uses Rails’s attr name localization for form labels, but defaults to showing the raw Ruby attribute name in other views.

This PR brings the collection & show views into line with what the form shows.

There is also a collection/show discrepancy in how titleize gets applied — to the localized version in collection, only the default in show — but I’ve left that in place for now.

@pcantrell
Copy link
Author

CI is failing on appraisal:

You have already activated bundler 1.12.5, but your Gemfile requires bundler 1.13.3

Don’t think that’s my changes…?

@kuboon
Copy link

kuboon commented Oct 13, 2016

I agree with this pull request.
I don't like #492.

@nickcharlton
Copy link
Member

Hi @pcantrell! Thanks for your PR!

I think I prefer how this standardises things. It's been a while, but would you be able to rebase on the current master (to lose those CI failures)?

Are we also able to test this change?

@nickcharlton
Copy link
Member

Closing in favour of #1064, which I hope we'll merge soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants