-
Notifications
You must be signed in to change notification settings - Fork 897
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
Introducing find by and find or build by methods #13926
Introducing find by and find or build by methods #13926
Conversation
def add_remaining_inventory_collections(defaults, inventory_collections_data = {}) | ||
defaults.each do |default| | ||
# Get names of all inventory collections defined in passed classes with Defaults | ||
all_inventory_collections = default.methods - ::ManagerRefresh::InventoryCollectionDefault.methods |
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.
will methods(false)
or public_methods(false)
work for you?
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.
ah, will try that, thank you :-)
This pull request is not mergeable. Please rebase and repush. |
find_by and find_or_build_by methods for ICs having manager_ref consisting from multiple attributes
Ansible using find_or_build_by for Playbooks
092f504
to
b58534f
Compare
@miq-bot remove_label wip |
Checked commits Ladas/manageiq@869a61d~...b58534f with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
LGTM |
Blocked:
Introducing find_by and find_or_build_by methods
Only 2 last commits are relevant, rest is dependency