Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[rails6] Update ActionView::Template::Handlers::RJS.call
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
- Loading branch information