-
Notifications
You must be signed in to change notification settings - Fork 898
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
Add InventoryObject interface automatically #17010
Conversation
Add InventoryObject interface automatically, without need to specify it in :inventory_object_attributes
return [] unless model_class | ||
|
||
# Get all writers of a model | ||
@allowed_writers ||= (model_class.new.methods - Object.methods).grep(/^[\w]+?\=$/) |
There was a problem hiding this comment.
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
I can't think of a better way to do this but looks good to me |
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 |
Ovirt and Amazon tests pass locally with this changeset applied |
Add InventoryObject interface automatically, without need to
specify it in :inventory_object_attributes