From 01849a46dbfa6a1fdb9d68143b33460e27870aad Mon Sep 17 00:00:00 2001 From: zmagod Date: Wed, 21 Dec 2016 15:40:07 +0100 Subject: [PATCH] removed unneeded lines --- app/datatables/sample_datatable.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/datatables/sample_datatable.rb b/app/datatables/sample_datatable.rb index ad185182e..90af5ec62 100644 --- a/app/datatables/sample_datatable.rb +++ b/app/datatables/sample_datatable.rb @@ -221,11 +221,9 @@ class SampleDatatable < AjaxDatatablesRails::Base if @my_module then # Depending on the sort, order nulls first or # nulls last on sample_my_modules association - records.order("sample_my_modules.id NULLS #{sort_null_direction(params[:order].values[0])}") elsif @experiment # A very elegant solution to sort assigned samples at a experiment level - # grabs the ids of samples which has a modules that belongs to this project assigned = Sample .joins('LEFT OUTER JOIN "sample_my_modules" ON "sample_my_modules"."sample_id" = "samples"."id"')