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

Rails 5 compatibility: Undefined Mime::PDF #22

Open
vanboom opened this issue Apr 13, 2021 · 0 comments
Open

Rails 5 compatibility: Undefined Mime::PDF #22

vanboom opened this issue Apr 13, 2021 · 0 comments

Comments

@vanboom
Copy link

vanboom commented Apr 13, 2021

Mime::PDF is no longer defined under Rails 5. Use

      def set_content_type
        @controller.response.content_type ||= Mime::EXTENSION_LOOKUP['pdf']
      end

PR will be submitted shortly.

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