class ActiveRecord::Validations::PresenceValidator
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/active_record/validations/presence.rbs class ActiveRecord::Validations::PresenceValidator < ActiveRecord::Validations::ActiveModel::Validations::PresenceValidator def validate_each: ((Types::Sample | User) record, Symbol attribute, String association_or_value) -> nil end
:nodoc:
def validate_each(record, attribute, association_or_value)
Experimental RBS support (using type sampling data from the type_fusion
project).
def validate_each: ((Types::Sample | User) record, Symbol attribute, String association_or_value) -> nil
This signature was generated using 20 samples from 2 applications.
def validate_each(record, attribute, association_or_value) if record.class._reflect_on_association(attribute) association_or_value = Array.wrap(association_or_value).reject(&:marked_for_destruction?) end super end