Created
December 1, 2017 20:30
-
-
Save zdennis/43079741612f2752163f6fe200de16ab to your computer and use it in GitHub Desktop.
OliveBranch transformation snippet for blog post
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
camelCasedPayload = OliveBranch::Transformations.transform( | |
{ key.to_sym => payload }, | |
OliveBranch::Transformations.method(:camelize) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Where do I need to put this code to make all broadcasts use camelcase?