mirror of
https://0xacab.org/sutty/sutty
synced 2025-01-19 14:13:38 +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?
|
- name = [name,''] if template.multiple?
|
||||||
= file_field_tag field_name_for_post_as_string(name),
|
= file_field_tag field_name_for_post_as_string(name),
|
||||||
class: 'form-control',
|
class: 'form-control',
|
||||||
required: template.required? && value.empty?,
|
required: template.required? && value.blank?,
|
||||||
multiple: template.multiple?,
|
multiple: template.multiple?,
|
||||||
accept: 'image/*'
|
accept: 'image/*'
|
||||||
- if template.multiple?
|
- if template.multiple?
|
||||||
|
|
Loading…
Reference in a new issue