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

Remove rescue_error_messages method from base controller #95

Open
turino opened this issue Apr 12, 2016 · 0 comments
Open

Remove rescue_error_messages method from base controller #95

turino opened this issue Apr 12, 2016 · 0 comments

Comments

@turino
Copy link
Contributor

turino commented Apr 12, 2016

line 8:

  def rescue_error_messages
    begin
      response = yield
      [response, 200]
    rescue ArgumentError, OAuth2::Error => e
      [{error: e.message}, 422]
    end
  end

OAuth2 is no longer relevant. I think the whole method can be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant