Closed adis-io closed 9 years ago
Right now, Interactor doesn't have any concept of validations. One of the main reasons for this decision is that any number of behaviors might be expected if an interactor's validations were violated, so we're opting (at the moment) for flexibility. So what I see above looks just fine to me!
I've toyed with the idea of introducing an Interactor::Model
module that could combine an interactor with the sort of form/virtual model you're using above but I haven't fully pursued it yet, nor do I know whether it's a good idea!
Thanks for the question and I hope that helps!
Before sign up user, I need validate all params. Where should I put this validations stuff? Now I'm using form object for validation using ActiveModel.