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

Make $in and $nin work with arrays #28

Merged
merged 2 commits into from
Oct 30, 2023
Merged

Make $in and $nin work with arrays #28

merged 2 commits into from
Oct 30, 2023

Conversation

dsantosmerino
Copy link
Contributor

#22 but fixing the existing style issues

Similar to growthbook/growthbook#1246, trying to have the same behavior and the latest features in this SDK.

@tinahollygb tinahollygb changed the base branch from main to contrib July 24, 2023 17:01
def self.is_in?(actual, expected)
return expected.include?(actual) unless actual.is_a? Array

def self.in?(actual, expected)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we may be missing a type definition in the .rbs file for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done eaf3842, @tinahollygb 😸

@dsantosmerino
Copy link
Contributor Author

Are we missing something else here, @tinahollygb?

@jdorn jdorn merged commit 332fab3 into growthbook:contrib Oct 30, 2023
jdorn pushed a commit that referenced this pull request Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants