forest_admin_datasource_active_record 1.0.0.pre.beta.52 → 1.0.0.pre.beta.53

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27170727d659bedbd5d59129f7cd6909cf79203085dc3021abde57a19745e583
4
- data.tar.gz: b557374838f709d98ca2056ac5e7c4996985b61e31cab132bd76d483a5570959
3
+ metadata.gz: 241691e966a9bd75b1cf66d07cc640e8ad2201fef29640568fafca6490c28250
4
+ data.tar.gz: 4db07ffe9fa5d0c0f9397c9b4b7073850440aa5a68d8329ef1e350d2e23ba7db
5
5
  SHA512:
6
- metadata.gz: e27f81c62fc5ca74d1d61ea5774470a0ebc95c5d689831584358c76f92691b994c36d7758221612b54b3ace724ca9a6201a25006b7b56127f51bf5a49d8424da
7
- data.tar.gz: 4ba98821b8b56ef90a72ccfe80a57409324a727dff38ce423401fd30e0af4d4ffc2abf2dd239e574fb48c1560e0a44243d27ef4b388ffc13c83d1adcc21038e1
6
+ metadata.gz: d7b4af902acab6b8edd4067603f6de7f1e3420608a78b44a5ee339125030b54e4508a50f4956c50bad891a8d77c92f6854d922fd5e3debfbe9cf6706555fcacf
7
+ data.tar.gz: 817416e1dc2c846b473f1afec82f922205560c8802f8b340507337714aa4388bc1d328436ad2b5bfaae24cef2b52960da69d6c25e7cb5c4b991a17bfd1e52d3c
@@ -15,6 +15,10 @@ module ForestAdminDatasourceActiveRecord
15
15
  enable_count
16
16
  end
17
17
 
18
+ def native_driver
19
+ ActiveRecord::Base.connection
20
+ end
21
+
18
22
  def list(_caller, filter, projection)
19
23
  query = Utils::Query.new(self, projection, filter)
20
24
 
@@ -82,7 +82,7 @@ module ForestAdminDatasourceActiveRecord
82
82
  when Operators::LIKE
83
83
  @query = @query.send(aggregator, @query.where(@arel_table[field.to_sym].matches(value)))
84
84
  when Operators::INCLUDES_ALL
85
- # TODO: to implement
85
+ @query = @query.send(aggregator, @query.where(@arel_table[field.to_sym].matches_all(value)))
86
86
  end
87
87
 
88
88
  @query
@@ -1,3 +1,3 @@
1
1
  module ForestAdminDatasourceActiveRecord
2
- VERSION = "1.0.0-beta.52"
2
+ VERSION = "1.0.0-beta.53"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_admin_datasource_active_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta.52
4
+ version: 1.0.0.pre.beta.53
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-06-07 00:00:00.000000000 Z
12
+ date: 2024-06-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord