effective_datatables 4.22.3 → 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e28694285e494e1dc825a61c276c8f1f8f79ef433b973aa054488bfd6decfabe
|
4
|
+
data.tar.gz: 17a2c72b5b817ad34afc938748af1feca8642df80ccde42ede594e5949c8d72c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2024-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|