alchemy-custom-model 2.2.1 → 2.2.2
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: 5dd37037f1ebd976bf3cda0f6d0325d381eebae1b1d0256445c67596c06af263
|
|
4
|
+
data.tar.gz: '029370beb77e99fb3a28e1d3540fffd784f3bd48f243a114ec742104d81cdb65'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a6ff76dfa2a7664204181e444e8917f5dadfb5d7e70deaeb3ecefa12b0a5177eb1f045f4905d902289a5e16749ceb91121d42f22d0f76846619184f709bf4579
|
|
7
|
+
data.tar.gz: 6ebd527978ac7ca9478d5026360e03f25d67ab0a5d90308618d57ffbd0b7a38f68166d93a045d34373a19148f86fe65f565516aaa18824d1f3c6e95552e10d57
|
|
@@ -35,6 +35,15 @@ module Alchemy::Custom::Model::ElFinder
|
|
|
35
35
|
"#{p.id}#{URI_SPACER}"
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
+
##
|
|
39
|
+
# Identifichiamo la data di modifica del file con la data di modifica del record, in questo modo la cache
|
|
40
|
+
# che viene generata attraverso l'inserimento di un parametro nella query con il valore t=orario non andrà ad essere
|
|
41
|
+
# aggiornato ad ogni refresh, anche solo a livello di browser
|
|
42
|
+
# nel caso abbiamo problemi usiamo lo standard
|
|
43
|
+
def mtime
|
|
44
|
+
active_record_instance.updated_at rescue super
|
|
45
|
+
end
|
|
46
|
+
|
|
38
47
|
def file
|
|
39
48
|
active_record_instance.file
|
|
40
49
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: alchemy-custom-model
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2.
|
|
4
|
+
version: 2.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alessandro Baccanelli
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2021-
|
|
12
|
+
date: 2021-05-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: alchemy_cms
|