effective_datatables 4.20.5 → 4.20.6
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: 6f7c205135a1636a8e73e9b18f9a1ae773a742dedaf1f8c9ded5841437b76de1
|
4
|
+
data.tar.gz: 4833cbbf89c6c11c58e3493df4c6ce9cd6832eab94fe57c82a9cd4b7bb1e063e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3369c5d02656e568ad03d80f063c862deb76fbdbe7ee59f3825b7648be9c65903c63f7185e0318aa81265fc723e4b14d704b838c1e7ec37b0692ff0daa4c258a
|
7
|
+
data.tar.gz: f4bedb87ab51be6fcaf49392e65ccabfabf3c1b15df3d88338015ea2aa40704167c03caa45cee6c6bf162098351734373b946c21f5f72e37e9105b0f34a14981
|
@@ -28,8 +28,8 @@ module Effective
|
|
28
28
|
retval = attributes.except(*resources.keys)
|
29
29
|
|
30
30
|
resources.each do |k, resource|
|
31
|
-
retval["#{k}_id".to_sym] = resource.id
|
32
31
|
retval["#{k}_type".to_sym] = resource.class.name
|
32
|
+
retval["#{k}_id".to_sym] = resource.id
|
33
33
|
end
|
34
34
|
|
35
35
|
retval
|
data/lib/effective_datatables.rb
CHANGED
@@ -80,12 +80,13 @@ module EffectiveDatatables
|
|
80
80
|
|
81
81
|
raise 'invalid decoded inline payload' unless attributes.kind_of?(Hash)
|
82
82
|
|
83
|
-
attributes
|
83
|
+
attributes.symbolize_keys
|
84
84
|
end
|
85
85
|
|
86
86
|
def self.message_encrypter
|
87
|
-
key = (Rails.application.
|
88
|
-
key ||= (Rails.application.secret_key_base.presence rescue nil)
|
87
|
+
key = (Rails.application.secret_key_base.presence rescue nil)
|
88
|
+
key ||= (Rails.application.try(:credentials).try(:secret_key_base).presence rescue nil)
|
89
|
+
key ||= (Rails.application.try(:secrets).try(:secret_key_base).presence rescue nil)
|
89
90
|
key ||= 10.times.map { "".hash.to_s }.join
|
90
91
|
|
91
92
|
ActiveSupport::MessageEncryptor.new(key.to_s.first(32))
|
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.20.
|
4
|
+
version: 4.20.6
|
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: 2023-11-
|
11
|
+
date: 2023-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|