5
0
Fork 0
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:
f 2018-09-05 16:17:04 -03:00
parent 1e3f3ed299
commit 667e3d252c
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7

View file

@ -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?