forest_admin_datasource_active_record 1.0.0.pre.beta.51 → 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: beb46c1e928f7fe46dc96e3d94911f1b396e36b3b2a72a99e02cdc665d9252db
4
- data.tar.gz: d69a3dbbe3688af9bbe8ac4a948690c95e0b6e54e4ab150c801e8019ed449702
3
+ metadata.gz: 241691e966a9bd75b1cf66d07cc640e8ad2201fef29640568fafca6490c28250
4
+ data.tar.gz: 4db07ffe9fa5d0c0f9397c9b4b7073850440aa5a68d8329ef1e350d2e23ba7db
5
5
  SHA512:
6
- metadata.gz: c1f6731c8cdcfa0704624c778c694cd417b0cba2826d986b8a09ff5e5499436c98a65f465e16e4f9b3a5db751637ca4f8a90741e74c84e48eab3e6cae7f46fa7
7
- data.tar.gz: 3c339e4f340af3cfd9faa0fc9b64d7a13a3266334f398b8d3d6025afa438d6c7bf0cbfb1aa08f67c3c2a647b1aef857f2bfefd97de845862e9cc0a323f38145d
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.51"
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.51
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-05-23 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