You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, certain fields in my collection depend on other field values. How can a obtain the value of a field in definition?
Example:
Factory.define 'product', App.collections.products, sex: -> getRandomElementFromList ['Male', 'Female'] category: -> # This value depends on the chosen sex value.
Thanks.
The text was updated successfully, but these errors were encountered:
Hi, certain fields in my collection depend on other field values. How can a obtain the value of a field in definition?
Example:
Factory.define 'product', App.collections.products,
sex: -> getRandomElementFromList ['Male', 'Female']
category: -> # This value depends on the chosen sex value.
Thanks.
The text was updated successfully, but these errors were encountered: