grid_table 1.2.2 → 1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/grid_table/table.rb +4 -1
- data/lib/grid_table/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2be2017a419f82b1e67189ec8d7bac5ab5e23eda
|
4
|
+
data.tar.gz: 2b15115fd9480db7a9dc83dfe8de2c73af690678
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e7133ad725d439b8ca7c2848938eff5402af46c69bee188807a629c33e4674f7df146181c4f0d303f67e4b5249639c0b6a455d528dca12f644c7686b8278727
|
7
|
+
data.tar.gz: dbd6739a159c4ab75bad5a3cf2b091dc39770040cae3863837817da707bbcf34a68263909c644d5ab27ec8a1e5d8cf74212ff09a1053664c16bfdea77abf03ad
|
data/lib/grid_table/table.rb
CHANGED
@@ -19,7 +19,10 @@ class GridTable::Table
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def populate!(resource, params)
|
22
|
-
|
22
|
+
# In Rails 5 ActionController::Parameters returns an object rather than a hash
|
23
|
+
# It provides the to_h method in order to return a hash (with indifferent access) of safe parameters
|
24
|
+
# Rails 4 and below returns a regular hash so we need to account for that
|
25
|
+
@params = params.to_h.with_indifferent_access
|
23
26
|
@records = resource
|
24
27
|
|
25
28
|
filter! unless params[:skip_filtering]
|
data/lib/grid_table/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grid_table
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: '1.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Principe
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-06-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|