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

simplify find_descendants #4739

Merged
merged 1 commit into from Oct 9, 2015

Conversation

kbrock
Copy link
Member

@kbrock kbrock commented Oct 7, 2015

simplify Rbac find_descendants call.

changed it into a single liner. merge is basically a dup.

/cc @gtanzillo @matthewd


results = search(search_options)
descendants = results.first
search(options.merge(:class => descendant_klass, :results_format => :objects).first
Copy link
Member

Choose a reason for hiding this comment

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

missing right paren?

@miq-bot
Copy link
Member

miq-bot commented Oct 8, 2015

Checked commit kbrock@b282edc with ruby 1.9.3, rubocop 0.34.2, and haml-lint 0.13.0
1 file checked, 0 offenses detected
Everything looks good. 👍

chessbyte added a commit that referenced this pull request Oct 9, 2015
@chessbyte chessbyte merged commit 697818e into ManageIQ:master Oct 9, 2015
@chessbyte chessbyte added this to the Sprint 31 Ending Oct 26, 2015 milestone Oct 9, 2015
@kbrock kbrock deleted the user_rbac_find_descendants branch October 9, 2015 15:12
@Fryguy Fryguy added the core label Oct 27, 2015
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.

None yet

4 participants