effective_datatables 4.7.8 → 4.7.9

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: e1ffaca2f3188d2d0e191f663bda92dc3abf1689dc10d75a86e6685429b10ee6
4
- data.tar.gz: d72d0f4a1f13b1bd53e5976a127dfc141e3b06d1044c0968569297d7fce47a45
3
+ metadata.gz: 04dc4193bfa7df74ea293e09a5d58c2960353eef458b7b35592a8d28c5414f32
4
+ data.tar.gz: fa69c2c429d134996db63c99ef21f726aeedd51c73b2d827ce0c90072b4817d2
5
5
  SHA512:
6
- metadata.gz: 6636d69ef21c9043e53223fc978426652c1f026fb1ba68785db8abf26d6646f1d1fdffd4d5a97845f11b91a77661f781891367f232f60b7a9453a60482887a9f
7
- data.tar.gz: 1bdd69edde3a0123cefae1d370f04572e7cd509fee702d6f449d2188cad41f04bcf7e3b714452d75a543b26ba89603ef6850b66800266d64f6b5ddaa05443448
6
+ metadata.gz: 387e3b27d26e4f6587543cde926a487450b4a339ec72c34f04d2e9fe310bf0443ff8c7d4471ac83e403bc1fb9e89e39ca787fa49ca914ae0d960d07b0e82a69d
7
+ data.tar.gz: b9ef2b83820e368394d3a31e572cd4dd6faec3b883a2d9c5b37b469db31baee35eef705e950c9d82e46f403565c327bc4ffa5e602394013c3fd74c692660cdb0
@@ -147,6 +147,11 @@ module Effective
147
147
 
148
148
  actions[existing].merge!(opts.except(:remote, 'remote'))
149
149
  end
150
+
151
+ actions = actions.sort do |(_, a), (_, b)|
152
+ (column[:actions].keys.index(a[:action]) || 99) <=> (column[:actions].keys.index(b[:action]) || 99)
153
+ end.to_h
154
+
150
155
  end
151
156
 
152
157
  actions
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.7.8'.freeze
2
+ VERSION = '4.7.9'.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.8
4
+ version: 4.7.9
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-07-03 00:00:00.000000000 Z
11
+ date: 2019-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails