Module: Workbench::SoftValidationHelper

Defined in:
app/helpers/workbench/soft_validation_helper.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) soft_validation_alert_tag(object)



3
4
5
6
7
8
9
# File 'app/helpers/workbench/soft_validation_helper.rb', line 3

def soft_validation_alert_tag(object)
#object.soft_validate
#content_tag(:span, '', 
#            data: { icon: 'attention'},
#            title: object.soft_validations.soft_validations.collect{|m| m.message}.join('; ') 
#           ) if !object.soft_valid?
end