effective_datatables 4.0.1 → 4.0.2

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
  SHA1:
3
- metadata.gz: 7ab95f2d266beb9b172ec2604fb67e0620c55a75
4
- data.tar.gz: 660a6d40c9050609b2bd53a439a2e2586db2abec
3
+ metadata.gz: bd3db9094ef653a9e203abb0d5823e7ebca64ef4
4
+ data.tar.gz: 8a9f26fd60107cdf670b7e18938d5bab6eb19800
5
5
  SHA512:
6
- metadata.gz: 0cf189eda6e9c86068a481b5eb5c5fff224e82d396791ed79f8d76b96bb6b7e89de5639723ac207fd4926ded919fc4c656918d3ca30c46d71c4f2f60dfe45e03
7
- data.tar.gz: e459bd93a775506e1e660f8b47f2dd4a1c6f8820abb10c7bcc9b30d6969ad15c2431833862b6a8e77a327c8cc79410036cc1dfb83b52b59e584b1c4662d257f4
6
+ metadata.gz: 1c20b383f29606fb7d79f0c08ac9261528d7b41c5701b039c6b94e4238f97234aa70d0d5cfb78dc7911fb50a61632fe3c902e29c03042cff686b5df392eb14f4
7
+ data.tar.gz: b52cd30c6147d1c0a09e3f48820d40228448a2b29127d51ec85ab289cba373336b3d03439462417b03939670041ba890a42e00d452b503b728356dc985cd9980
@@ -24,7 +24,7 @@ module Effective
24
24
  private
25
25
 
26
26
  def find_datatable(id)
27
- id = id.to_s.gsub(/-\d{12}\z/, '').gsub('-', '/')
27
+ id = id.to_s.gsub(/-\d+\z/, '').gsub('-', '/')
28
28
  id.classify.safe_constantize || id.classify.pluralize.safe_constantize
29
29
  end
30
30
 
@@ -17,7 +17,7 @@ module Effective
17
17
  end
18
18
 
19
19
  def cookie_param
20
- [self.class, attributes].hash.to_s.last(12)
20
+ [self.class, attributes].hash.abs.to_s.last(12) # Not guaranteed to be 12 long
21
21
  end
22
22
 
23
23
  private
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.0.1'.freeze
2
+ VERSION = '4.0.2'.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.0.1
4
+ version: 4.0.2
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: 2018-03-20 00:00:00.000000000 Z
11
+ date: 2018-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails