avo 2.32.6 → 2.33.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: 6cd2f99c299bdf5412dbf9650696b335b9157c226c3f24fb0d80b04b6d9a5eae
4
- data.tar.gz: 3586667c9311be37ed01fc950afca11455e08a3e02fa14965797c7c25119dbb3
3
+ metadata.gz: bde2848589b8531552c9773d39da659c757d144eff828db6a851314508f95c9b
4
+ data.tar.gz: afb5e42a6d5363fb28095311b13401ae36a6b9a657704fdd817265a523110ef3
5
5
  SHA512:
6
- metadata.gz: 76635e0735361495b584e9cff07913733c10016403c6d572098f9c6d793cb8403741d2eb789dd1105941cbff3232b98ab2882314ccb3c5172532fe5f3bf8e3cb
7
- data.tar.gz: a0a1799b442787df8e39537f64ad8380a1a82d30baa4c58fe4f14eee294100ba814187ecfbbed8c2471bf04b0287ae0bbe10c2151a8573e2c1c40a282fb8a7b0
6
+ metadata.gz: f974408c7680082e17d1c5a6d5e0cff2cbd6fb4eb60a0546a1ad59286dd48295f4943845dc1d6845295b2f345ef1eedfdf397d34490e50a081af96c9d88b8428
7
+ data.tar.gz: 2728f765058549dcceb8b15089fd3e4f2a5ca1e03587c146e2162338c862c14f1724366746c89b1fad471641bad74d312c1001a3fe100dabe6c2432326aab400
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (2.32.6)
4
+ avo (2.33.0)
5
5
  actionview (>= 6.0)
6
6
  active_link_to
7
7
  activerecord (>= 6.0)
@@ -52,7 +52,7 @@ module Avo
52
52
  ).handle
53
53
 
54
54
  # Get the count
55
- results_count = query.reselect(:id).count
55
+ results_count = query.reselect(resource.model_class.primary_key).count
56
56
 
57
57
  # Get the results
58
58
  query = query.limit(8)
data/lib/avo/app.rb CHANGED
@@ -44,7 +44,7 @@ module Avo
44
44
  when "ActiveSupport::Cache::MemCacheStore", "ActiveSupport::Cache::RedisCacheStore"
45
45
  Rails.cache
46
46
  else
47
- ActiveSupport::Cache.lookup_store(:file_store, "/tmp/cache")
47
+ ActiveSupport::Cache.lookup_store(:file_store, Rails.root.join("tmp", "cache"))
48
48
  end
49
49
  elsif Rails.env.test?
50
50
  Rails.cache
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "2.32.6" unless const_defined?(:VERSION)
2
+ VERSION = "2.33.0" unless const_defined?(:VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.32.6
4
+ version: 2.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-05-18 00:00:00.000000000 Z
12
+ date: 2023-05-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord