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: efe60765e3b15e6c05007e9bba964cb70d52e411ff5fe8eb7899c7289317c24d
4
- data.tar.gz: ec684a2e94cb1955f657fe86f412302ac5ff44795e3f6f06217f22240cd27e33
3
+ metadata.gz: 6f7c205135a1636a8e73e9b18f9a1ae773a742dedaf1f8c9ded5841437b76de1
4
+ data.tar.gz: 4833cbbf89c6c11c58e3493df4c6ce9cd6832eab94fe57c82a9cd4b7bb1e063e
5
5
  SHA512:
6
- metadata.gz: bf3517b19749fa82ff16a57cee12b778b88693e2519830e438af3f18752e771ed519fadd586c72d6cd155084fc9fd358a5e3fa4939a7c9c4a023db8348957619
7
- data.tar.gz: db6d03253ce56d049b95992f382c41c4ea7f9d44f5e1919243430ec40eb3b927f1365960641eb1ac30343ad557c1842cd9267d6ca738af12610a9c2bad90bbf6
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.20.5'.freeze
2
+ VERSION = '4.20.6'.freeze
3
3
  end
@@ -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.secrets.secret_key_base.presence rescue nil)
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.5
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-15 00:00:00.000000000 Z
11
+ date: 2023-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails