`validates_some` is an extenstion to the ActiveModel validation API. The `validates_some` method filters declared validations for the referenced attributes. It expects that just _some_ (at least one) of the listed attributes are valid for the whole group of attributes to be considered validated.

Required Ruby Version

>= 3.0.0

Authors

Dimitar Apostolovski

Versions

  1. 1.0.0
    1. source

      1. 1.0.0 source November 16, 2026 (7 KB)

Pushed by

SHA 256 checksum