Project

General

Profile

Actions

Defect #32885

closed

Rails 6: DEPRECATION WARNING: Single arity template handlers are deprecated

Added by Go MAEDA over 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Rails support
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

A deprecation warning "Single arity template handlers are deprecated" is shown in Rails 6.

$ bin/rails test test/unit/attachment_test.rb
.
.
.
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:
  >> Redmine::Views::ApiTemplateHandler.call(template)
To:
  >> Redmine::Views::ApiTemplateHandler.call(template, source)
 (called from <top (required)> at /path/to/redmine/lib/redmine.rb:353)

Files

fix-single-arity-template-handlers-are-deprecated.patch (548 Bytes) fix-single-arity-template-handlers-are-deprecated.patch Go MAEDA, 2020-01-26 10:00
template.diff (755 Bytes) template.diff a small improvement Pavel Rosický, 2021-04-01 20:11

Related issues

Related to Redmine - Feature #29914: Migrate to Rails 6.1 with Zeitwerk autoloadingClosedGo MAEDA

Actions
Actions

Also available in: Atom PDF