These are chat archives for dry-rb/chat

Nov 2016
Nov 22 2016 07:27

Hi there! How can I change property value, when form.validate depending on value of other property in this form
For example:

property :amount
property :type

if type == 'negative'
  amount = 0 - amount

Any solution?

Christopher Dennl-Ortega Arrieta
Nov 22 2016 07:30
@alexeymoshkin high level rules, look in the docs
Nov 22 2016 07:31
@cdennl thanks, I will try
Martín Fernández
Nov 22 2016 15:10
This message was deleted
Martín Fernández
Nov 22 2016 16:20
It it possible to use AutoInject in a rails concern ?