effective_datatables 4.4.2 → 4.4.3

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: d2e589bf3b121ec3ec0286dc8c1e94169a26edd9
4
- data.tar.gz: f35b96216db08d011c858c3876b4e94cefbafada
3
+ metadata.gz: a1f17f025870ed33dac35eb613043a406c79401a
4
+ data.tar.gz: 5e87d8596b594b85f5b5928ae8decd9a2094611c
5
5
  SHA512:
6
- metadata.gz: 4181de92a46520e05f875cd0b2d650a7f9cd304f44605e72d858fecf1688578a85f53d93f9a5597a99dd2b950c482201cfa848ff248ad4e32a1d65c7755dce83
7
- data.tar.gz: 142a507377e8340ae1a9f1bee1881c351295f4f05e53748750a8ab216cda05682c5bf6bbc9b13482a9ee0961e367afd48f202c08ff9141a908352271fd1631b8
6
+ metadata.gz: b57a3901c1cbdfdf45ab96b15204b951596e9631e468bc2ac856143e55923e21834feb6129ab5c7d79a00f41df4336e859b0bc9543c6bc9ce6b10a6964c0a08e
7
+ data.tar.gz: a3967f42c2ed9a2de9769e5a091b1e231d1d9e64edba002b1d57c2a08639cc79990f482b26896b8026562e4b8b5a5f31a8c4e93e486c1d224ef1e1633a18b70c
data/README.md CHANGED
@@ -23,6 +23,42 @@ This requires Twitter Bootstrap 4 and Rails 5.1+
23
23
 
24
24
  Please check out [Effective Datatables 3.x](https://github.com/code-and-effect/effective_datatables/tree/bootstrap3) for more information using this gem with Bootstrap 3.
25
25
 
26
+ # Contents
27
+
28
+ * [Getting Started](#getting-started)
29
+ * [Quick Start](#quick-start)
30
+ * [Usage](#usage)
31
+ * [DSL](#dsl)
32
+ * [attributes](#attributes)
33
+ * [collection](#collection)
34
+ * [datatable](#datatable)
35
+ * [col](#col)
36
+ * [val](#val)
37
+ * [bulk_actions_col](#bulk_actions_col)
38
+ * [actions_col](#actions_col)
39
+ * [length](#length)
40
+ * [order](#order)
41
+ * [reorder](#reorder)
42
+ * [aggregate](#aggregate)
43
+ * [filters](#filters)
44
+ * [scope](#scope)
45
+ * [filter](#filter)
46
+ * [bulk_actions](#bulk_actions)
47
+ * [bulk_action](#bulk_action)
48
+ * [bulk_action](#bulk_action_divider)
49
+ * [bulk_download](#bulk_download)
50
+ * [bulk_action_content](#bulk_action_content)
51
+ * [charts](#charts)
52
+ * [Extras](#extras)
53
+ * [Advanced Search and Sort](#advanced-search-and-sort)
54
+ * [Addtional Functionality](#additional-functionality)
55
+ * [Checking for Empty collection](#checking-for-empty-collection)
56
+ * [Override javascript options](#override-javascript-options)
57
+ * [Get access to the raw results](#get-access-to-the-raw-results)
58
+ * [Authorization](#authorization)
59
+ * [License](#license)
60
+ * [Contributing](#contributing)
61
+
26
62
  # Getting Started
27
63
 
28
64
  ```ruby
@@ -1152,11 +1188,11 @@ rescue_from Effective::AccessDenied do |exception|
1152
1188
  end
1153
1189
  ```
1154
1190
 
1155
- ## License
1191
+ # License
1156
1192
 
1157
1193
  MIT License. Copyright [Code and Effect Inc.](http://www.codeandeffect.com/)
1158
1194
 
1159
- ## Contributing
1195
+ # Contributing
1160
1196
 
1161
1197
  1. Fork it
1162
1198
  2. Create your feature branch (`git checkout -b my-new-feature`)
@@ -1164,4 +1200,3 @@ MIT License. Copyright [Code and Effect Inc.](http://www.codeandeffect.com/)
1164
1200
  4. Push to the branch (`git push origin my-new-feature`)
1165
1201
  5. Bonus points for test coverage
1166
1202
  6. Create new Pull Request
1167
-
@@ -62,6 +62,7 @@ initializeDataTables = (target) ->
62
62
  $form = $(".effective-datatables-filters[aria-controls='#{$table.attr('id')}']").first()
63
63
 
64
64
  params['cookie'] = $table.data('cookie')
65
+ params['authenticity_token'] = $table.data('authenticity-token')
65
66
 
66
67
  if $form.length > 0
67
68
  params['scope'] = $form.find("input[name='filters[scope]']:checked").val() || ''
@@ -41,6 +41,7 @@ module EffectiveDatatablesHelper
41
41
  id: datatable.to_param,
42
42
  class: html_class,
43
43
  data: {
44
+ 'authenticity-token' => form_authenticity_token,
44
45
  'bulk-actions' => datatable_bulk_actions(datatable),
45
46
  'columns' => datatable_columns(datatable),
46
47
  'cookie' => datatable.cookie_key,
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.4.2'.freeze
2
+ VERSION = '4.4.3'.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.4.2
4
+ version: 4.4.3
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-03-25 00:00:00.000000000 Z
11
+ date: 2019-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails