Added sort function in admin/jobs index
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user