Sha256: 2320b2c0ed23b11cbbbedead6c7f41ea7e69541ed50af9b7bfc7b4fe4edeb240
Contents?: true
Size: 271 Bytes
Versions: 4
Compression:
Stored size: 271 Bytes
Contents
# frozen_string_literal: true require 'micro/case' module Micro class Case include Micro::Attributes::Features::ActiveModelValidations def call return Failure(:validation_error) { { errors: self.errors } } unless valid? __call end end end
Version data entries
4 entries across 4 versions & 1 rubygems