active_job_dash 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 554c5b3c3e20185998fe0aa952cf760af3570183a4c0b2a8568530e335b3f6d9
|
|
4
|
+
data.tar.gz: f51167bf276c78ba680a8ee7a8120293d2343b16b2db1bd934a56f1a3214d262
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f6eb4700dbfb4db1f263f85c513d7a1b8e0133bc01ab85175d6c11e17176d366f771aa241d0801b54eb6dc5382ff8c2c8c2dbdf1f39967d6a2ea95d92c2a3e2a
|
|
7
|
+
data.tar.gz: 6836943c44e095507e6e96c9ec19baff65864e93040617801469adfc82032d0b8c0f5199d7ed3868dafe4c16ebc0a73d7569512ca2af83d5d8cdfc4d89854dd9
|
|
@@ -7,9 +7,9 @@ module ActiveJobDash
|
|
|
7
7
|
private
|
|
8
8
|
|
|
9
9
|
def authenticate!
|
|
10
|
-
return unless ActiveJobDash.
|
|
10
|
+
return unless ActiveJobDash.dashboard_auth
|
|
11
11
|
|
|
12
|
-
instance_exec(&ActiveJobDash.
|
|
12
|
+
instance_exec(&ActiveJobDash.dashboard_auth)
|
|
13
13
|
end
|
|
14
14
|
end
|
|
15
15
|
end
|
|
@@ -45,7 +45,7 @@ module ActiveJobDash
|
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
def purge
|
|
48
|
-
days = params[:days]&.to_i || ActiveJobDash.
|
|
48
|
+
days = params[:days]&.to_i || ActiveJobDash.retention_days
|
|
49
49
|
deleted = JobExecution.where(created_at: ...days.days.ago).delete_all
|
|
50
50
|
|
|
51
51
|
redirect_to dashboard_path, notice: "Purged #{deleted} records older than #{days} days"
|