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

Updates for Rails 6.0 #3

Merged
merged 1 commit into from
Nov 23, 2020
Merged

Conversation

NickLaMuro
Copy link
Member

@NickLaMuro NickLaMuro commented Nov 23, 2020

Redo of #2

  • Updates calls to ActionView::Template::Handlers::RJS.call

There isn't a need change the alias_method_chain since that seemed to have been addressed previously here:

5ed5e95

Probably should be a major version update for this gem, but that can be up for discussion.

Links

In Rails6, there is a deprecation warning with `.call` when working with
template handlers:

    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:
      >> #<ActionView::Template::Handlers::RJS:0x00007f8ecf616cb8>.call(template)
    To:
      >> #<ActionView::Template::Handlers::RJS:0x00007f8ecf616cb8>.call(template, source)

This borrows from PR 138 in Hamlit that did the same thing:

- https://github.com/k0kubun/hamlit
- https://github.com/k0kubun/hamlit/blob/master/CHANGELOG.md#293---2019-04-09
@NickLaMuro
Copy link
Member Author

@Fryguy please review.

@Fryguy Fryguy merged commit 476e0ae into ManageIQ:jquery_rjs_0_1_1 Nov 23, 2020
NickLaMuro added a commit to NickLaMuro/manageiq that referenced this pull request Nov 24, 2020
Update to a version that includes the patch for Rails 6.0

ManageIQ/jquery-rjs#3
NickLaMuro added a commit to NickLaMuro/manageiq that referenced this pull request Nov 30, 2020
Update to a version that includes the patch for Rails 6.0

ManageIQ/jquery-rjs#3
NickLaMuro added a commit to NickLaMuro/manageiq that referenced this pull request Dec 1, 2020
Update to a version that includes the patch for Rails 6.0

ManageIQ/jquery-rjs#3
NickLaMuro added a commit to NickLaMuro/manageiq that referenced this pull request Dec 2, 2020
Update to a version that includes the patch for Rails 6.0

ManageIQ/jquery-rjs#3
NickLaMuro added a commit to NickLaMuro/manageiq that referenced this pull request Dec 3, 2020
Update to a version that includes the patch for Rails 6.0

ManageIQ/jquery-rjs#3
NickLaMuro added a commit to NickLaMuro/manageiq that referenced this pull request Dec 7, 2020
Update to a version that includes the patch for Rails 6.0

ManageIQ/jquery-rjs#3
NickLaMuro added a commit to NickLaMuro/manageiq that referenced this pull request Dec 10, 2020
Update to a version that includes the patch for Rails 6.0

ManageIQ/jquery-rjs#3
NickLaMuro added a commit to NickLaMuro/manageiq that referenced this pull request Jan 5, 2021
Update to a version that includes the patch for Rails 6.0

ManageIQ/jquery-rjs#3
kbrock pushed a commit to kbrock/manageiq that referenced this pull request Jan 27, 2021
Update to a version that includes the patch for Rails 6.0

ManageIQ/jquery-rjs#3
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