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(options = nil)
  return @validates_format_options = nil if options == false
  @validates_format_options = options || {}
end

#validates_format_optionsObject



6
7
8
# File 'lib/selectable_attr_rails/validatable/enum.rb', line 6

def validates_format_options
  @validates_format_options
end