effective_datatables 4.22.3 → 4.23.0

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: 59a32fa9af3a17a46a2f0ba0149dc47a1d6b58301b36a8ee73824552867b1b38
4
- data.tar.gz: e0f6bfaf0037d47b7be43d8ca71f47cf72ca3c547c61a8cf65b1cf4e3fcc8fb2
3
+ metadata.gz: e28694285e494e1dc825a61c276c8f1f8f79ef433b973aa054488bfd6decfabe
4
+ data.tar.gz: 17a2c72b5b817ad34afc938748af1feca8642df80ccde42ede594e5949c8d72c
5
5
  SHA512:
6
- metadata.gz: 1397ea1f8d7941a37cfe0da34a53b0f23843ec72d4200314ac496a9446306f077267a4c261eba9de14b00f6c0943238175613101c5d6c11053fefcd7fba88fc6
7
- data.tar.gz: 5590659c494da1e65936d9ed42eb4f95d56a57e079e2ead6a9b9cb210b8ba9feba4952c21ac56c54bab4b6820b013b30077df79276fc468b71a177d0d75193e3
6
+ metadata.gz: 7756e1a17ada79b50d8496845eb3e9060cbec84954c2603f356a0735d58bcef14f46132fe9b921ebd412acbd1f9b2b55727f18f28a180a5c6f50277142a58d63
7
+ data.tar.gz: 58790be7fb4d4a09e1b5529453fd710ab3f8279dea93164ee101b788dcd4a5e0275737ac25561219e6c43b2d4b00163fc01e41dd5c7defef87e6a73de72dfb72
@@ -35,22 +35,6 @@ module Effective
35
35
 
36
36
  # Assign namespace based off controller path unless given
37
37
  @attributes[:namespace] ||= view.controller_path.split('/')[0...-1].join('/')
38
-
39
- # If there are attributes[:user_type] and attributes[:user_id] type attributes load them into attributes[:user]
40
- resource_attributes = @attributes.select do |key, value|
41
- name = key.to_s
42
- base = name.sub('_type', '')
43
-
44
- name.ends_with?('_type') && @attributes.key?("#{base}_id".to_sym) && value.safe_constantize.present?
45
- end
46
-
47
- resource_attributes.each do |key, value|
48
- name = key.to_s
49
- base = name.sub('_type', '')
50
-
51
- klass = value.constantize
52
- @attributes[base.to_sym] ||= klass.find_by_id(attributes["#{base}_id".to_sym])
53
- end
54
38
  end
55
39
 
56
40
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.22.3'.freeze
2
+ VERSION = '4.23.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_datatables
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.22.3
4
+ version: 4.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-30 00:00:00.000000000 Z
11
+ date: 2024-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails