From 2f7adffcb0fe30a59dc68989c491dab96174727e Mon Sep 17 00:00:00 2001 From: aignatov-bio Date: Thu, 23 Apr 2020 16:40:14 +0200 Subject: [PATCH] Fix markup --- app/helpers/repository_datatable_helper.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/helpers/repository_datatable_helper.rb b/app/helpers/repository_datatable_helper.rb index 69b08e752..8c2bce68a 100644 --- a/app/helpers/repository_datatable_helper.rb +++ b/app/helpers/repository_datatable_helper.rb @@ -3,12 +3,8 @@ module RepositoryDatatableHelper include InputSanitizeHelper - def prepare_row_columns(repository_rows, repository, columns_mappings, team, options = {}) - - if options[:my_module] - assigned_rows = options[:my_module].repository_rows.where(repository: repository).pluck(:id) - end + assigned_rows = options[:my_module].repository_rows.where(repository: repository).pluck(:id) if options[:my_module] repository_rows.map do |record| row = {