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: 350f7cabcafa4b2c45d4a22ba2ee23c2bd58c719f622cc1619cba29d8934bb2f
4
- data.tar.gz: 9f43ce7df02880061330222c666ac4eac99e301a3dbd2494cc6232f40167e644
3
+ metadata.gz: 5dd37037f1ebd976bf3cda0f6d0325d381eebae1b1d0256445c67596c06af263
4
+ data.tar.gz: '029370beb77e99fb3a28e1d3540fffd784f3bd48f243a114ec742104d81cdb65'
5
5
  SHA512:
6
- metadata.gz: 58992f001577a2b87264e88e2e7c15f6c03bd9a7c112b100f1acf054a4355fe1d18c6e142742de7a995bfa742d68661f052571b43c6e0fec0cb6f45418aa9595
7
- data.tar.gz: e218a09bc0dec11be4747c658622e583593b086486490e3bf34cfcab8652f95915d122325e861a48c09cde9e61686f69b499471b92d3a2dfe72a29aec7a15f03
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
@@ -1,7 +1,7 @@
1
1
  module Alchemy
2
2
  module Custom
3
3
  module Model
4
- VERSION = '2.2.1'
4
+ VERSION = '2.2.2'
5
5
  end
6
6
  end
7
7
  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.1
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-03-24 00:00:00.000000000 Z
12
+ date: 2021-05-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: alchemy_cms