Fix overlapping error on Travis with make_visible option on attach_field spec helper

This commit is contained in:
Senén Rodero Rodríguez
2017-08-24 20:17:13 +02:00
parent f4ac8b17d0
commit d67ad6d6d0
5 changed files with 9 additions and 8 deletions

View File

@@ -20,7 +20,7 @@
<%= f.file_field :attachment,
accept: accepted_content_types_extensions(@document.documentable.class),
label: false,
class: 'document_ajax_attachment show-for-sr',
class: 'document_ajax_attachment',
data: {
url: upload_documents_url(documentable_type: @document.documentable_type, documentable_id: @document.documentable_id),
cached_attachment_input_field: "document_cached_attachment",

View File

@@ -25,7 +25,7 @@
<%= file_field_tag :attachment,
accept: accepted_content_types_extensions(document.documentable_type.constantize),
class: 'document_ajax_attachment show-for-sr',
class: 'document_ajax_attachment',
data: {
url: upload_documents_url(
documentable_type: document.documentable_type,