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 +4 -4
- data/lib/mmunicode_rails/version.rb +1 -1
- data/lib/mmunicode_rails.rb +10 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 309d73355726d4b2e4742b8fcc9c109d463f65fc
|
4
|
+
data.tar.gz: 7a9fa8413ed9556c134a448f85dee12aea35b4b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80eb0883fc6ba88abb93c9a7b61c4f61d5e5594dcbce6933ba8d996b7fc3037a80d64f4a32c7f10a5c1685a9abf9346db58e8af9fb7ead3dfb3b7041eafc61c9
|
7
|
+
data.tar.gz: a206d5a852dc518e9a25933d4b9f1e663f59b2d5851aa0460080390430c50e9cae80b07c8ebd7a004d7f0334e92074593d43f84a07cfd90a71576855015c449b
|
data/lib/mmunicode_rails.rb
CHANGED
@@ -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
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
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
|