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
The perform instance method does not currently run validations, and it should.
Validations run perfectly for the class method:
MyUseCase.perform
Validations do not run for the instance method:
use_case = MyUseCase.new
use_case.perform
Since the instance method is intended to be overridden by the class that includes UseCasePattern, we can't just add the valid? check into the perform method. We need to figure out a way to do this smartly.
The text was updated successfully, but these errors were encountered:
The perform instance method does not currently run validations, and it should.
Validations run perfectly for the class method:
Validations do not run for the instance method:
Since the instance method is intended to be overridden by the class that includes UseCasePattern, we can't just add the valid? check into the perform method. We need to figure out a way to do this smartly.
The text was updated successfully, but these errors were encountered: