Class: Reform::Form::Validate::Skip::AllBlank
- Inherits:
-
Object
- Object
- Reform::Form::Validate::Skip::AllBlank
- Includes:
- Uber::Callable
- Defined in:
- lib/reform/form/validate.rb
Instance Method Summary collapse
Instance Method Details
#call(form, params, options) ⇒ Object
48 49 50 51 52 53 54 |
# File 'lib/reform/form/validate.rb', line 48 def call(form, params, ) # TODO: hahahahahaha. properties = .binding.representer_module.representer_class.representable_attrs[:definitions].keys properties.each { |name| params[name].present? and return false } true # skip end |