mmunicode_rails 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2fd1e1c0d3177b1d6f761b59f7a5417e14a14118
4
- data.tar.gz: a8134b7011901e99b79ec782771d2ea0eb0ffece
3
+ metadata.gz: 309d73355726d4b2e4742b8fcc9c109d463f65fc
4
+ data.tar.gz: 7a9fa8413ed9556c134a448f85dee12aea35b4b8
5
5
  SHA512:
6
- metadata.gz: eb1d1581f7eace6ac3165e91155cbb786031c0d0ba3af971abc49af3ff4a3d3abce248dd32185b3dd2150f33eb176b9f088e206d486c622c49453f8e9c05668d
7
- data.tar.gz: e5bcb2b49f197d03cc02cdb8fe3dad43763463574b358154c8783a81b5260608ab5a55767eb7b9b30d609c70ec2a80de7f113d9fa43a4279fb5f4cdd03f58e2d
6
+ metadata.gz: 80eb0883fc6ba88abb93c9a7b61c4f61d5e5594dcbce6933ba8d996b7fc3037a80d64f4a32c7f10a5c1685a9abf9346db58e8af9fb7ead3dfb3b7041eafc61c9
7
+ data.tar.gz: a206d5a852dc518e9a25933d4b9f1e663f59b2d5851aa0460080390430c50e9cae80b07c8ebd7a004d7f0334e92074593d43f84a07cfd90a71576855015c449b
@@ -1,3 +1,3 @@
1
1
  module MmunicodeRails
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
@@ -329,15 +329,16 @@ module MmunicodeRails
329
329
  private
330
330
  def nested_param_traversal(param)
331
331
  if param.respond_to? :each_pair
332
- param.each_pair do|k,v|
333
- param[k] = nested_param_traversal(v)
334
- end
335
- elsif param.respond_to? :each
336
- param.map do |item|
337
- nested_param_traversal(item)
338
- end
339
- else
340
- zg12uni51(param)
332
+ param.each_pair do|k,v|
333
+ param[k] = nested_param_traversal(v)
334
+ end
335
+ elsif param.is_a? Array
336
+ param.map do |item|
337
+ nested_param_traversal(item)
338
+ end
339
+ else
340
+ # convert only strings , otherwise untouch
341
+ if param.is_a? String then zg12uni51(param) else param end
341
342
  end
342
343
  end
343
344
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mmunicode_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - dreamingblackcat