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

Use verify_request_format! method to check valid request format #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 28, 2020

  1. Use verify_request_format! method to check valid request format

    This commit fix a problem to be able to render error responses for 
    format distinct to html (for example json) because e.request.format is
    returning a Mime::Type object that doesn’t match with the values in 
    self.class.respond_to that is a hash with keys :html, :json, etc
    
    Using the responders’ verify_requested_format! we are getting exactly
    the same goal delegating the tasks in the own responders gem.
    Felipe Peña Pita committed Sep 28, 2020
    Configuration menu
    Copy the full SHA
    efa8c6c View commit details
    Browse the repository at this point in the history