Module: ValidationAnnotations::Validations::Presence

Included in:
ActiveModel::Validations::PresenceValidator
Defined in:
lib/validation_annotations/validations/presence.rb

Instance Method Summary collapse

Instance Method Details

#add_html_annotations!(options) ⇒ Object



4
5
6
# File 'lib/validation_annotations/validations/presence.rb', line 4

def add_html_annotations!(options)
  options['required'] = 'required'
end