refine-rails 2.13.2 → 2.13.3

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: 67595ba20d0aeec9f9bae8d277b760b1928074c8a7946d92eda75a276855afd5
4
- data.tar.gz: bb1917cfe855069d7e3c3df79c7ca8e12ba206b095a6e0db2263141ae405acb7
3
+ metadata.gz: 0d884d53b3f3d7c0dc223d7a3a772544df81c58fd389e54d97b027b743acb3f4
4
+ data.tar.gz: 63a180f14c982ed73ca57cf0ada9e3894a0b0328351d97b7a76b507e0d6276c2
5
5
  SHA512:
6
- metadata.gz: 75a2b64a293f40776ffd07f2aa0f13e87e3e59443bd0d5e0d638adad5255adba96a6b5ec528bef723cbad9f5de2ad0f66080fb5b86883d6b04b87f55014dae68
7
- data.tar.gz: 0c0880ad431be7bc549962cadf4bacb60d7d9f182e99789ac5c495053d0e5295bff697892af8f263cf2acbbd0bdd310b5df9e97b14dda26d67387e974af562d1
6
+ metadata.gz: b07dc837ed05cfae41e2332822bab37cbab7a289d60da1b7fc71e8b1cc4d08ec47e5cf072dd80bdfb4b59f82d9fbce037e4c2ad0ce89838b719c88d6925efc38
7
+ data.tar.gz: 28ceb0a1e948230d97571b3f1bac60b83d4d4b27ad9233cf86e7033e40337ec3dea6b704de4e85c272337c45587f3d31c5915e2234c6372f57e28625419954ca
@@ -127,6 +127,9 @@ module Refine::Conditions
127
127
  if self.through_id_relationship
128
128
  if instance.is_a? ActiveRecord::Reflection::ThroughReflection
129
129
  through_reflection = instance.through_reflection
130
+ if(through_reflection.is_a?(ActiveRecord::Reflection::BelongsToReflection))
131
+ through_reflection = instance.source_reflection.through_reflection
132
+ end
130
133
  parent_foreign_key = through_reflection.foreign_key
131
134
  child_foreign_key = instance.source_reflection.foreign_key
132
135
  relation_table_being_queried = through_reflection.klass.arel_table
@@ -1,5 +1,5 @@
1
1
  module Refine
2
2
  module Rails
3
- VERSION = "2.13.2"
3
+ VERSION = "2.13.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refine-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.13.2
4
+ version: 2.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colleen Schnettler
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-01-07 00:00:00.000000000 Z
12
+ date: 2025-01-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails