Class: Rosebud::Validations::PresenceValidator
- Inherits:
-
Rosebud::Validator
- Object
- Rosebud::Validator
- Rosebud::Validations::PresenceValidator
- Defined in:
- lib/rosebud/validations/presence_validator.rb
Instance Method Summary collapse
Methods inherited from Rosebud::Validator
Instance Method Details
#validate_param(name, value, options) ⇒ Object
4 5 6 |
# File 'lib/rosebud/validations/presence_validator.rb', line 4 def validate_param(name, value, ) error!(:presence, param: name) if value.nil? || value.strip == '' end |