-
-
Save kylemclaren/1be98cb24427e16d252b6069d9bfc40f to your computer and use it in GitHub Desktop.
Pretty print a mongoid document
This file contains 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
JSON.pretty_generate(JSON.parse(obj.to_json)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment