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

"require 'delegate'" for compatibility with ruby 2.7 #1019

Merged
merged 1 commit into from
May 3, 2022

Conversation

BryanPierce
Copy link
Contributor

When running wicked_pdf with ruby 2.7 in a non-rails environment the following error is encountered:
uninitialized constant WickedPdf::WickedPdfHelper::Assets::SimpleDelegator

The delegate library was loaded by default in older versions of ruby, but in 2.7 this is not the case. Explicitly requiring delegate in assets.rb resolves the issue.

Copy link
Collaborator

@unixmonkey unixmonkey left a comment

Choose a reason for hiding this comment

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

Thank you!

@unixmonkey unixmonkey merged commit 50b30a9 into mileszs:master May 3, 2022
@BryanPierce BryanPierce deleted the require-delegate branch May 3, 2022 14:51
@unixmonkey
Copy link
Collaborator

This is now released in version 2.6.2. Please let me know if it works for you.
Thank you!

@BryanPierce
Copy link
Contributor Author

It works. Thanks!

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

Successfully merging this pull request may close these issues.

2 participants