Module: ActiveModel::Validations::HelperMethods
- Defined in:
- lib/active_record/postgres_enum/enum_validator.rb
Instance Method Summary collapse
Instance Method Details
#validates_enum(*attr_names) ⇒ Object
41 42 43 |
# 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 |