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 ActionView deprecation regarding single arity template handlers #110

Merged
merged 1 commit into from
Mar 11, 2019
Merged

Fix ActionView deprecation regarding single arity template handlers #110

merged 1 commit into from
Mar 11, 2019

Conversation

aramvisser
Copy link
Contributor

Using rails6.0.0.beta2, ActionView gives a deprecation warning regarding single arity template handlers. Template handlers now receive the source directly as a second parameter,

rails/rails@28f88e0

This commit fixes the deprecation warning, while still allowing old version of ActionView to call the template handler with a single parameter.

ActionView recently changed the template handler implementation to pass
in the source directly. A deprecation warning is shown for handlers that
don't accept a direct source.
@javierjulio javierjulio merged commit b845f1f into activeadmin:master Mar 11, 2019
@javierjulio
Copy link
Member

Thanks @aramvisser! ❤️

varyonic pushed a commit to varyonic/arbo that referenced this pull request Feb 8, 2022
…ctiveadmin#110)

ActionView recently changed the template handler implementation to pass
in the source directly. A deprecation warning is shown for handlers that
don't accept a direct source.
varyonic pushed a commit to varyonic/arbo that referenced this pull request Feb 8, 2022
…ctiveadmin#110)

ActionView recently changed the template handler implementation to pass
in the source directly. A deprecation warning is shown for handlers that
don't accept a direct source.
varyonic pushed a commit to varyonic/arbo that referenced this pull request Feb 8, 2022
…ctiveadmin#110)

ActionView recently changed the template handler implementation to pass
in the source directly. A deprecation warning is shown for handlers that
don't accept a direct source.
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.

3 participants