Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Commit

Permalink
ucfirst_hash should not downcase full key and thus destroying camelCa…
Browse files Browse the repository at this point in the history
…sed names (#47)
  • Loading branch information
universal authored and jcs committed Sep 8, 2018
1 parent e539b67 commit 287ebc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helper.rb
Expand Up @@ -18,7 +18,7 @@ class Sinatra::IndifferentHash
def ucfirst_hash
out = {}
self.each do |k,v|
out[k.to_s.downcase.ucfirst] = v
out[k.to_s.ucfirst] = v
end
out
end
Expand Down

0 comments on commit 287ebc7

Please sign in to comment.