We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, the given? method can only check values on top-level filters or hash filters.
given?
active_interaction/lib/active_interaction/base.rb
Lines 235 to 247 in 8a6ac52
Given a set of filters like this
array :line_items do hash do integer :amount string :description, default: nil end end
I would love to be able to do something like
given?(:line_items, 0, :description)
I've hacked together a rudimentary version of this for now
def given_line_item_field?(index, field) @_interaction_inputs.dig(:line_items, index).key?(field) end
The text was updated successfully, but these errors were encountered:
c83b3eb
Thanks for fixing @AaronLasseigne!
Sorry, something went wrong.
AaronLasseigne
No branches or pull requests
Currently, the
given?
method can only check values on top-level filters or hash filters.active_interaction/lib/active_interaction/base.rb
Lines 235 to 247 in 8a6ac52
Given a set of filters like this
I would love to be able to do something like
I've hacked together a rudimentary version of this for now
The text was updated successfully, but these errors were encountered: