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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b53df641bcd7a343ff2de944adad6285091c9564
4
- data.tar.gz: fd70c525d9387b702031d218128127576b3bded5
3
+ metadata.gz: 2be2017a419f82b1e67189ec8d7bac5ab5e23eda
4
+ data.tar.gz: 2b15115fd9480db7a9dc83dfe8de2c73af690678
5
5
  SHA512:
6
- metadata.gz: cf232f22247cb1317e501b847512f2a112ea7061b2171b1845c28391d8c4ce3940b500827e7c7e1a9d32f3e31443f538197b7f62fb9e1fb1198ec1fcab31999e
7
- data.tar.gz: 1375fb2f35533be05f2c1028827ea50ead3b13e4c456a728e57e073f34a0fbfe5965f0574560ec06ce3a1704cacd481b7d4033092cf255eaf213f1ad79d69557
6
+ metadata.gz: 8e7133ad725d439b8ca7c2848938eff5402af46c69bee188807a629c33e4674f7df146181c4f0d303f67e4b5249639c0b6a455d528dca12f644c7686b8278727
7
+ data.tar.gz: dbd6739a159c4ab75bad5a3cf2b091dc39770040cae3863837817da707bbcf34a68263909c644d5ab27ec8a1e5d8cf74212ff09a1053664c16bfdea77abf03ad
@@ -19,7 +19,10 @@ class GridTable::Table
19
19
  end
20
20
 
21
21
  def populate!(resource, params)
22
- @params = HashWithIndifferentAccess.new(params)
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]
@@ -1,3 +1,3 @@
1
1
  module GridTable
2
- VERSION = "1.2.2"
2
+ VERSION = "1.3"
3
3
  end
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.2.2
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-03-17 00:00:00.000000000 Z
12
+ date: 2017-06-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler