module ActiveModel::Validations::HelperMethods

Public Instance Methods

validates_enum(*attr_names) click to toggle source
# File lib/active_record/postgres_enum/enum_validator.rb, line 41
def validates_enum(*attr_names)
  validates_with ActiveRecord::PostgresEnum::EnumValidator, _merge_attributes(attr_names)
end