Created
October 28, 2014 09:46
-
-
Save tquiroga/4665c4bb86d3a4d4ee49 to your computer and use it in GitHub Desktop.
Restrict JSON output
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
def as_json(options={}) | |
logger.fatal "---- AS JSON -----" | |
options[:except] ||= [ | |
:authentication_token, | |
:invitation_token, | |
] | |
super(options) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment