Change test of attachment from present? to file?

This commit is contained in:
Luis Ramos
2020-09-04 10:06:41 +01:00
parent 208be3ede6
commit e44efd3db2

View File

@@ -1,2 +1,2 @@
%p.small
= t('.message_html', terms_and_conditions_link: link_to( t( '.link_text' ), current_order.distributor.terms_and_conditions.url, target: '_blank')) if current_order.distributor.terms_and_conditions.present?
= t('.message_html', terms_and_conditions_link: link_to( t( '.link_text' ), current_order.distributor.terms_and_conditions.url, target: '_blank')) if current_order.distributor.terms_and_conditions.file?