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 | Trade | User) record, Symbol attribute, (String | Integer) 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 | Trade | User) record, Symbol attribute, (String | Integer) association_or_value) -> nil

This signature was generated using 21 samples from 3 applications.

:nodoc:
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