lib/twilio-ruby/rest/utils.rb in twilio-ruby-3.10.1 vs lib/twilio-ruby/rest/utils.rb in twilio-ruby-3.11.0
- old
+ new
@@ -2,10 +2,10 @@
module REST
module Utils
def twilify(something)
if something.is_a? Hash
- Hash[*something.to_a.map {|a| [twilify(a[0]).to_sym, a[1]]}.flatten]
+ Hash[*something.to_a.map {|a| [twilify(a[0]).to_sym, a[1]]}.flatten(1)]
else
something.to_s.split('_').map do |s|
[s[0,1].capitalize, s[1..-1]].join
end.join
end