effective_datatables 4.7.13 → 4.7.14

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: 394352b61c82c616b3b35bf1587edab9ba4e7b2c020a014d7d3150d3759a2cba
4
- data.tar.gz: c2e423ccfcd097260519fc3b7d30b1c1ca0cc0296e4f15cefae4dce6a1590430
3
+ metadata.gz: 94091a70a1042491590e40c2d5b2200cde3426908ca59855081907b98658dd79
4
+ data.tar.gz: 7d0d0bbd5e06c3ae7b3bc40bcf753b2650819ac781b3e259e071153cc3807970
5
5
  SHA512:
6
- metadata.gz: b36bf11202e78c0393941f0dd2ae94fcb07542251cd82a61acb7120e7482ee25f9129ed4b30b2662a05e5cca7a3b7f17e986a62cbc2524ed5850c305273eba24
7
- data.tar.gz: 07c6383758a4d352f38a28db9f8cb79fb668fd84a20788ebbca054615865b8c8d71162d258bb98920d660ff1f97d4868775fda1f64b3d06a98e3cae364c053e8
6
+ metadata.gz: 19661883fbe1073ac114658bde5b306852260c68b76747ed1481747631b2b45653324412d5cd6709ef4acbc846d16d3005d112e5146ed725f79c4eaeaf949349
7
+ data.tar.gz: 3104d75439d664981d30cb89ce4d466bf778cc962e737c4a4e51593d5161bcf4d0929fd25161569a6726bce95e88497d76da9aea312a6c91d57a2574a07a44ed
@@ -79,7 +79,10 @@ module EffectiveDatatables
79
79
  end
80
80
 
81
81
  def self.message_encrypter
82
- key = (Rails.application.secrets.secret_key_base rescue nil) || self.hash
82
+ key = (Rails.application.secrets.secret_key_base.presence rescue nil)
83
+ key ||= (Rails.application.secret_key_base.presence rescue nil)
84
+ key ||= 10.times.map { "".hash.to_s }.join
85
+
83
86
  ActiveSupport::MessageEncryptor.new(key.to_s.first(32))
84
87
  end
85
88
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.7.13'.freeze
2
+ VERSION = '4.7.14'.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.7.13
4
+ version: 4.7.14
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: 2019-08-29 00:00:00.000000000 Z
11
+ date: 2019-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails