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

Add InventoryObject interface automatically #17010

Merged

Conversation

Ladas
Copy link
Contributor

@Ladas Ladas commented Feb 16, 2018

Add InventoryObject interface automatically, without need to
specify it in :inventory_object_attributes

Add InventoryObject interface automatically, without need to
specify it in :inventory_object_attributes
@Ladas
Copy link
Contributor Author

Ladas commented Feb 16, 2018

@miq-bot assign @agrare
@miq-bot add_label enhancement

return [] unless model_class

# Get all writers of a model
@allowed_writers ||= (model_class.new.methods - Object.methods).grep(/^[\w]+?\=$/)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@agrare do you know nicer way of doing this?

Add missing YARD docs for InventoryObject
@agrare
Copy link
Member

agrare commented Apr 18, 2018

I can't think of a better way to do this but looks good to me

@miq-bot
Copy link
Member

miq-bot commented Apr 18, 2018

Checked commits Ladas/manageiq@1bff320~...68d996c 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. ⭐

@agrare
Copy link
Member

agrare commented Apr 18, 2018

Ovirt and Amazon tests pass locally with this changeset applied

@agrare agrare merged commit 14b83a3 into ManageIQ:master Apr 18, 2018
@agrare agrare added this to the Sprint 84 Ending Apr 23, 2018 milestone Apr 18, 2018
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