Module: SelectableAttrRails::Validatable::Enum
- Defined in:
- lib/selectable_attr_rails/validatable/enum.rb
Instance Method Summary collapse
Instance Method Details
#validates_format(options = nil) ⇒ Object
9 10 11 12 |
# File 'lib/selectable_attr_rails/validatable/enum.rb', line 9 def validates_format( = nil) return @validates_format_options = nil if == false @validates_format_options = || {} end |
#validates_format_options ⇒ Object
6 7 8 |
# File 'lib/selectable_attr_rails/validatable/enum.rb', line 6 def @validates_format_options end |