table-for 3.6.0 → 3.6.1

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: fce5617d62755ddab8e61726c5f7eef02538bac2
4
- data.tar.gz: 588eead2c7aea2c34fd06fc37f9c689b8e8d330c
3
+ metadata.gz: a06e3f4c62b8e960ce23e069b5a9e988d0a36721
4
+ data.tar.gz: eaf4a354271a193e83a835036dacd42cf4bc696a
5
5
  SHA512:
6
- metadata.gz: 301a073938275f7369266fab2147b313671003e4c748ae4d9062ddd764abaee6e9e29cc8e94a860f800ce543aa4a512e9181198253764263f45e4e42a9d7d0c5
7
- data.tar.gz: 2262926933d7dcab1c4c330996fcad9446e7afcdfae25750200b0777a671c94ff5e1536adf9e168d3d6c9f7d74b21d211b78e7e8a879ce2267fb74f4e087633c
6
+ metadata.gz: 8d4d10c87846a31dcd086dcf266dab6e28f171c08190f69fa0e8e551015053c909663ab389ec4f9921ec0e00e66433f08cb6453228db1840d3e0a52f20786245
7
+ data.tar.gz: 62dbeac5635056aeda4b3cf2dc33dbb0eda9f9b08491e19997588e6b1a900786981e5c2efdb638696315df04c93b7b903a73454f213a9c84afdbbfce153fbaf0
@@ -1,3 +1,9 @@
1
+ 3.6.1
2
+ * Fixed :sortable option for Rails 5 that was breaking when
3
+ ActionController::Parameters#to_query was being called without any arguments
4
+ as reported and fixed by @karwank here https://github.com/hunterae/table-for/pull/10.
5
+ Thanks @karwank.
6
+
1
7
  3.6.0
2
8
  * Generated td tags will collapse all whitespace per suggestion by @jlfy.
3
9
 
@@ -115,6 +115,9 @@ module TableFor
115
115
  end
116
116
 
117
117
  parameters = view.params.merge(:order => order, :sort_mode => next_sort_mode)
118
+ if parameters.respond_to?(:to_unsafe_h)
119
+ parameters = parameters.to_unsafe_h
120
+ end
118
121
  parameters.delete(:action)
119
122
  parameters.delete(:controller)
120
123
  url = options[:sort_url] ? options[:sort_url] : ""
@@ -1,3 +1,3 @@
1
1
  module TableFor
2
- VERSION = "3.6.0"
2
+ VERSION = "3.6.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table-for
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0
4
+ version: 3.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Hunter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-22 00:00:00.000000000 Z
11
+ date: 2017-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails