refine-rails 2.13.1 → 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 +4 -4
- data/app/models/refine/conditions/uses_attributes.rb +3 -0
- data/app/views/refine/advanced_inline/criteria/_condition_list_item_card.html.erb +1 -0
- data/app/views/refine/advanced_inline/filters/_criterion.html.erb +1 -1
- data/app/views/refine/inline/filters/_criterion.html.erb +1 -1
- data/lib/refine/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d884d53b3f3d7c0dc223d7a3a772544df81c58fd389e54d97b027b743acb3f4
|
4
|
+
data.tar.gz: 63a180f14c982ed73ca57cf0ada9e3894a0b0328351d97b7a76b507e0d6276c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -4,7 +4,7 @@
|
|
4
4
|
frame_id: dom_id(criterion) do
|
5
5
|
%>
|
6
6
|
|
7
|
-
<div class="refine--condition-pill-wrapper">
|
7
|
+
<div class="refine--condition-pill-wrapper" data-turbo-prefetch="false">
|
8
8
|
<div class="refine--condition-pill">
|
9
9
|
<%= link_to refine_advanced_inline_criterion_path(criterion.position, criterion.to_params), class: "refine--remove-condition", data: {turbo_method: :delete, controller: "refine--turbo-stream-link", action: "refine--turbo-stream-link#visit"} do %>
|
10
10
|
<span class="material-icons-outlined refine--icon-sm">clear</span>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
%>
|
6
6
|
|
7
7
|
<div class="refine--condition-pill-wrapper">
|
8
|
-
<div class="refine--condition-pill">
|
8
|
+
<div class="refine--condition-pill" data-turbo-prefetch="false">
|
9
9
|
<%= link_to refine_inline_criterion_path(criterion.position, criterion.to_params), class: "refine--remove-condition", data: {turbo_method: :delete, controller: "refine--turbo-stream-link", action: "refine--turbo-stream-link#visit"} do %>
|
10
10
|
<span class="material-icons-outlined refine--icon-sm">clear</span>
|
11
11
|
<% end %>
|
data/lib/refine/rails/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2025-01-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|