oxen_printer 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 135d01658e5c426ead5a0be899e34990b233635d
|
4
|
+
data.tar.gz: 438c0ed5d10bdd22e66cb7ee62d669def2bacdbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d6474a88806f7e8a927a1e8b45d02b8bb04cc293b854d97481adbac6b9874e84d6d9243a4421ae49dd4b5d3132ecfda81ddcd74c0b24d08bf218d72946629e6
|
7
|
+
data.tar.gz: 3b21b3d4113b1114f2627452735a8c7cb6fbcefba68170aa8680a5e0f4b61b85b65f4bc65b5f5b752eb631e2339306c8bc5a4025e6160361e76249be2805fee2
|
data/app/models/ox_print_job.rb
CHANGED
@@ -30,6 +30,7 @@ class OxPrintJob < AbstractResource
|
|
30
30
|
|
31
31
|
scope :stated, ->(pap) { where(state: pap) }
|
32
32
|
scope :queued, ->{ where(print_jobs.state >> ['processing','printing']) }
|
33
|
+
scope :newest, ->{ order(created_at: :desc)}
|
33
34
|
|
34
35
|
# Temporary attribute for the print_job object to hold the instanciated printer (PdfPrinter, HtmlPrinter, CsvPrinter etc.)
|
35
36
|
attr_accessor :action_printer, :snap_shot, :download
|
@@ -7,5 +7,5 @@
|
|
7
7
|
%th= t(:delete)
|
8
8
|
|
9
9
|
%tbody#account_printers.resources_list
|
10
|
-
- resource.print_jobs.each do |print_job|
|
10
|
+
- resource.print_jobs.newest.each do |print_job|
|
11
11
|
= render partial: 'oxen/print_jobs/printer_print_job', locals: { print_job: print_job, parent: resource, parent_id: resource.id }
|
data/lib/oxen_printer/version.rb
CHANGED