-
Notifications
You must be signed in to change notification settings - Fork 899
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CustomActionsMixin] Fixes for MiqSetMembership
Mostly converting the previous queries that existed to an AR based version. Notably: The `uniq.flatten` needed to be switched out because previous an array was returned by `.generic_button_group`, but now an ActiveRecord::CollectionProxy is returned and if `uniq` is called first, it doesn't do anything since each `CollectionProxy` is a uniq instance. Doing a `flatten` first will convert the `CollectionProxy` instances to Arrays, then the elements can properly have `.uniq` called on them.
- Loading branch information
1 parent
5470da3
commit 01443d2
Showing
2 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters