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

human_attribute_name(): add ui option to be able to call original (super) method #17834

Merged

Conversation

mzazrivec
Copy link
Contributor

@mzazrivec mzazrivec commented Aug 10, 2018

This PR:

  • changes the human_attribute_name() prototype, instead of *args we should use options = {} to match the prototype of original parent function
  • adds options[:ui] parameter for us to be able to call the original, i.e. super method.

human_attribute_name() is used in UI to automatically construct labels in textual summaries. With the change that I'm suggesting we're gonna be back to labels like Name instead of ManageIQ::Providers::Openstack::CloudManager::CloudVolume Name.

See #17754 for the original motivation to override human_attribute_name().

@miq-bot
Copy link
Member

miq-bot commented Aug 10, 2018

Checked commits mzazrivec/manageiq@a28204b~...b4fc632 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. ⭐

@martinpovolny martinpovolny merged commit f611ec7 into ManageIQ:master Aug 10, 2018
@martinpovolny martinpovolny added this to the Sprint 92 Ending Aug 13, 2018 milestone Aug 10, 2018
@martinpovolny martinpovolny self-assigned this Aug 10, 2018
@mzazrivec mzazrivec deleted the add_ui_option_to_human_attribute_name branch August 10, 2018 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants