Fix String quotes

This commit is contained in:
Luka Murn 2017-01-17 08:28:41 +01:00
parent 16955dcee6
commit ffc2b56dff

View file

@ -111,11 +111,11 @@ class SampleDatatable < AjaxDatatablesRails::Base
'2': record.name, '2': record.name,
'3': record.sample_type.nil? ? I18n.t('samples.table.no_type') : record.sample_type.name, '3': record.sample_type.nil? ? I18n.t('samples.table.no_type') : record.sample_type.name,
'4': sample_group_cell(record), '4': sample_group_cell(record),
"5": I18n.l(record.created_at, format: :full), '5': I18n.l(record.created_at, format: :full),
"6": record.user.full_name, '6': record.user.full_name,
"sampleInfoUrl": 'sampleInfoUrl':
Rails.application.routes.url_helpers.sample_path(record.id), Rails.application.routes.url_helpers.sample_path(record.id),
"sampleUpdateUrl": 'sampleUpdateUrl':
Rails.application.routes.url_helpers.sample_path(record.id) Rails.application.routes.url_helpers.sample_path(record.id)
} }