effective_resources 2.27.10 → 2.27.11

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: 46751d7573997ae44db813feeb17db490e5c2753701b7d7c8d7cf9caca816766
4
- data.tar.gz: 7394ef85ef4de5dc249b04c7037f50ea4206e5b779b91d75a0ab47bbad82b390
3
+ metadata.gz: 9a16ad14c45669551ecef298def17166d5a2527586cf95348a984ff3bf3d68d0
4
+ data.tar.gz: 9032881f23b8d24de89fc22a1fc876a69868d7e8d1723756c24951a30d12c0f7
5
5
  SHA512:
6
- metadata.gz: 1abd13a7548f5633a8a6e2a70140f5b79c5636546a134825800575da02f588ce7a8b25c4b2bfbc8e6707934f1fb0d65557f84c30bd32793658f5f2c0b7f200f2
7
- data.tar.gz: 6b6f9abd7c1296deb723796710d9628c4366a1f09ca8e066dd3d988c94a224d093ae8d0d6587b0e6010797cbdd22f8bbc9171d304c1e047e4326042533010fd3
6
+ metadata.gz: ea19397d163558180e588ac1212cd866163f7f545dd4f8fb9ab26759fac2db6ad2791ac977969f71a51b4c652f87abe86f4b02b79046ffa8d53b8593f21e011a
7
+ data.tar.gz: f3f2858998cd48e0453c200ec0b12bb8b94d548618baf438e09f025a585e1c35eb7837a928af6788f69063fc2a4d9a2ff1cdee1a3a2fd0ce83230f496cf66032
@@ -96,7 +96,11 @@ module Effective
96
96
  # Now that we have the scope figured out let's pull the limit number of records into an Array
97
97
  # If there are more than the limit, return as: :string
98
98
  resources = scope.limit(limit).to_a
99
- return { as: :string } unless resources.length < limit
99
+
100
+ if resources.length >= limit
101
+ Rails.logger.info "SEARCH TOOL: limit reached for #{association || res}"
102
+ return { as: :string }
103
+ end
100
104
 
101
105
  # Otherwise there are less than the limit, so we can use a collection select
102
106
  {
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '2.27.10'.freeze
2
+ VERSION = '2.27.11'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.27.10
4
+ version: 2.27.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-10 00:00:00.000000000 Z
11
+ date: 2025-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails