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 model_name in human_admin_name as default #251

Merged
merged 3 commits into from
Oct 30, 2019

Conversation

svoboda-jan
Copy link
Contributor

No description provided.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@coveralls
Copy link

coveralls commented Oct 28, 2019

Coverage Status

Coverage increased (+0.1%) to 84.989% when pulling 588d0af on svoboda-jan:patch-2 into d61193f on TrestleAdmin:master.

@spohlenz
Copy link
Member

The model_name method is only available in Trestle::Resource and not the top-level Trestle::Admin class. However I would be in favour of extracting the altered part of the line into a separate method such as default_human_admin_name that could be overridden in the Trestle::Resource subclass.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@svoboda-jan
Copy link
Contributor Author

👍 Made the changes.

@spohlenz
Copy link
Member

Looks great. Thank you!

@spohlenz spohlenz merged commit c664f24 into TrestleAdmin:master Oct 30, 2019
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.

None yet

3 participants