Implemented turbo_stream for operator jobs

This commit is contained in:
2024-08-15 18:19:15 +02:00
parent 3d7a4ae677
commit ad781b18cf
8 changed files with 82 additions and 44 deletions

View File

@@ -55,7 +55,7 @@ class Job < ApplicationRecord
.or(Job.where(status: %i[paid canceled])
.where("status_changed_at >= ?", Time.now.beginning_of_day))
# .in_status_order
.order(created_at: :desc)
.order(created_at: :asc)
# .order(:costumer_firstname, :costumer_lastname)
.with_attached_pdf # scope from activestorage for .includes(pdf_attachment: :blob)
# .references(:pdf_attachment, :blob) # creates big join table