nil no soporta empty?
This commit is contained in:
parent
1e3f3ed299
commit
667e3d252c
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
|||
- name = [name,''] if template.multiple?
|
||||
= file_field_tag field_name_for_post_as_string(name),
|
||||
class: 'form-control',
|
||||
required: template.required? && value.empty?,
|
||||
required: template.required? && value.blank?,
|
||||
multiple: template.multiple?,
|
||||
accept: 'image/*'
|
||||
- if template.multiple?
|
||||
|
|
Loading…
Reference in a new issue