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

Fix deprecation warning for Rails 6 #16

Merged
merged 1 commit into from
Dec 20, 2019

Conversation

leomayleomay
Copy link
Contributor

This is to fix deprecation warning after upgraded to Rails 6

DEPRECATION WARNING: Single arity template handlers are deprecated. Template handlers must
now accept two parameters, the view object and the source for the view object.
Change:
  >> #<MJML::Rails::TemplateHandler:0x00007fad1c00bf60>.call(template)
To:
  >> #<MJML::Rails::TemplateHandler:0x00007fad1c00bf60>.call(template, source)

@m-basov m-basov merged commit 62c2349 into m-basov:master Dec 20, 2019
@m-basov
Copy link
Owner

m-basov commented Dec 20, 2019

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