motor-admin 0.4.29 → 0.4.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/motor/audit.rb +4 -0
- data/lib/motor/api_query/filter.rb +7 -1
- data/lib/motor/version.rb +1 -1
- metadata +2 -3
- data/config/initializers/audited.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 744cbb9dcbd0e7cb01bec5fb771e50e52db58cc0adb9634ea80bd5dd02ffc2f3
|
4
|
+
data.tar.gz: 38ddbed12cb036e8ff51e84615541c71fa62d795633ea84044bff0e71817d9c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f32d7ed6a65d87dc067ae3e8458918826789419d17b1cc206dca49da8c53462e0e6d0346ec5f17b6d83ddaceb289f1a4f70ee44d06d2d19938681dc1fb95d6a9
|
7
|
+
data.tar.gz: bac8cf16d33d9f3ef297757e46fc13eb89c73d117b1170c868cd9ed334bf8ecd7c7b5539e729b3647136ce44be1864a0bf35f6c03706dee2a4ca89973b2500ba
|
data/app/models/motor/audit.rb
CHANGED
@@ -48,7 +48,13 @@ module Motor
|
|
48
48
|
|
49
49
|
rel = apply_predicates(rel, filters)
|
50
50
|
|
51
|
-
alias_tracker =
|
51
|
+
alias_tracker =
|
52
|
+
if Rails.version.to_f >= 7.2
|
53
|
+
rel.alias_tracker
|
54
|
+
else
|
55
|
+
ActiveRecord::Associations::AliasTracker.create(rel.connection, rel.table.name, [])
|
56
|
+
end
|
57
|
+
|
52
58
|
filter_clause_factory = ActiveRecord::Relation::FilterClauseFactory.new(rel.klass, rel.predicate_builder)
|
53
59
|
|
54
60
|
where_clause = filter_clause_factory.build(filters, alias_tracker)
|
data/lib/motor/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motor-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pete Matsyburka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ar_lazy_preload
|
@@ -176,7 +176,6 @@ files:
|
|
176
176
|
- app/views/motor/notifications_mailer/notify_mention_email.html.erb
|
177
177
|
- app/views/motor/notifications_mailer/notify_reminder_email.html.erb
|
178
178
|
- app/views/motor/ui/show.html.erb
|
179
|
-
- config/initializers/audited.rb
|
180
179
|
- config/locales/el.yml
|
181
180
|
- config/locales/en.yml
|
182
181
|
- config/locales/es.yml
|