Added sort function in admin/jobs index

This commit is contained in:
2024-09-23 10:16:16 +02:00
parent feb37a8a6b
commit 0f877456a4
5 changed files with 54 additions and 33 deletions

View File

@@ -122,6 +122,14 @@ class Job < ApplicationRecord
end
end
def self.ransackable_attributes(auth_object = nil)
[ "created_at", "id", "costumer_firstname", "costumer_lastname", "pdf.", "number_of_plans_a0", "number_of_plans_a1", "number_of_plans_a2", "number_of_plans_a3", "costum_qm_plan", "cost", "status" ]
end
def self.ransackable_associations(auth_object = nil)
[ "pdf_blob" ]
end
private
def printed_pages_changes?