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

Fixed base field compose when hash_key is a symbol and hash_value is … #319

Merged
merged 1 commit into from
Jan 24, 2016

Conversation

ericproulx
Copy link
Contributor

An object field whose value is an hash with symbol keys and one of them contains a false value. The corresponding field will be indexed with null instead of false

example :

field :person, value: (task, crutch) -> {crutch.person[task.id]} do
  field :name, type:string
  field :is_male, type: boolean
end

Let's say that crutch.person[task.id] would return

{
  name: 'Jane Doe'
  is_male: false
}

is_male would be index has null instead of false

@pyromaniac
Copy link
Contributor

Perfect, thanks!

pyromaniac added a commit that referenced this pull request Jan 24, 2016
Fixed base field compose when hash_key is a symbol and hash_value is …
@pyromaniac pyromaniac merged commit 333f6fd into toptal:master Jan 24, 2016
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.

2 participants