Skip to content

Commit

Permalink
added symbol processing
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Senderovich committed Oct 20, 2013
1 parent bf4ce68 commit 2e1106a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/voxbone/voxbone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def create_user_token(params)
def capitalize_params(params)
capitalized_params= {}
params.each do |key, value|
if key.to_s =~ (/[ _]/)
if (key.is_a?(String) && key =~ (/[ _]/)) || key.is_a?(Symbol)
key = key.to_s.split(/[ _]/).map do |part|
part.downcase == 'id' ? 'ID' : part.capitalize
end.join
Expand Down

0 comments on commit 2e1106a

Please sign in to comment.