Class: BootstrapValidatorRails::Validators::Presence
- Defined in:
- lib/bootstrap_validator_rails/validators/presence_validator.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from Validator
#generate_message, #generate_object, #html_attributes, #initialize, #js_options, #unsupported?, #validator_options
Constructor Details
This class inherits a constructor from BootstrapValidatorRails::Validators::Validator
Instance Method Details
#generate_options!(options = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/bootstrap_validator_rails/validators/presence_validator.rb', line 4 def ( = {}) return if unsupported? @js_options['notEmpty'] = {} @html_attributes[:bv_notempty] = 'true' @js_options['notEmpty']['message'] = @html_attributes[:bv_notempty_message] = end |