Skip to content

Instantly share code, notes, and snippets.

@tquiroga
Created October 28, 2014 09:46
Show Gist options
  • Save tquiroga/4665c4bb86d3a4d4ee49 to your computer and use it in GitHub Desktop.
Save tquiroga/4665c4bb86d3a4d4ee49 to your computer and use it in GitHub Desktop.
Restrict JSON output
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