Sequel’s built-in validation_class_methods plugin adds backwards compatibility for the legacy class-level validation methods (e.g. validates_presence_of :column).
It is recommended to use the validation_helpers plugin instead of this one, as it is less complex and more flexible.
Usage:
# Add the validation class methods to all model subclasses (called before loading subclasses) Sequel::Model.plugin :validation_class_methods # Add the validation class methods to the Album class Album.plugin :validation_class_methods
Generated with the Darkfish Rdoc Generator 2.