Sha256: 0466f6c4d81a3ad939eff471b0794dd6f5bb6fcbaa7debbfb55f586d5868ce2d
Contents?: true
Size: 279 Bytes
Versions: 3
Compression:
Stored size: 279 Bytes
Contents
module SteadyState module Attribute class TransitionValidator < ActiveModel::EachValidator def validate_each(obj, attr_name, _value) obj.errors.add(attr_name, :invalid) if obj.instance_variable_defined?("@last_valid_#{attr_name}") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems