effective_datatables 4.22.2 → 4.23.0

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: d637c86319bd250aa7a2c600360d4e2004fd2e8d5586f43ad8292a34310514e3
4
- data.tar.gz: 06df86631378ee04e662771188dad2d809e58a05a4bf7b8498c5e1d680bf540a
3
+ metadata.gz: e28694285e494e1dc825a61c276c8f1f8f79ef433b973aa054488bfd6decfabe
4
+ data.tar.gz: 17a2c72b5b817ad34afc938748af1feca8642df80ccde42ede594e5949c8d72c
5
5
  SHA512:
6
- metadata.gz: 619c96422b2be2a6b8f568b3c2ee3350578b7e9ae69e416e357fbe21e4a734f5bdab048d5d4c29cd1fe7ed3f3c166b0bb9293a52f941f4636c263278482360b3
7
- data.tar.gz: 5038f62833834b94010553369f5c1a2c19f7f0f2c1be245a90adcf696d1be120010b1b861e2b9640f19b6a2a647215191910fccdf7edd67faa780598eb199385
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(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.2'.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.2
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