# frozen_string_literal: true require 'micro/case' module Micro module Case class Base include Micro::Attributes::Features::ActiveModelValidations def call return Failure(:validation_error) { self.errors } unless valid? __call end end end end