mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 01:21:42 +00:00
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