Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rescue_from handler to clear state #918

Merged
merged 2 commits into from
May 21, 2015

Conversation

ryansch
Copy link
Contributor

@ryansch ryansch commented May 20, 2015

Fixes #917


RaiseErrorSerializer = Class.new(ActiveModel::Serializer) do
def json_key
raise StandardError, 'OOPS'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hah, can we write a different error message? 😆

@joaomdmoura
Copy link
Member

Tks @ryansch, I'm merging it! 😄

joaomdmoura added a commit that referenced this pull request May 21, 2015
Adding rescue_with_handler to clear state
@joaomdmoura joaomdmoura merged commit 5f05944 into rails-api:master May 21, 2015
@ryansch ryansch deleted the rescue_from branch May 21, 2015 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rescue_from handler fails with AMS
3 participants