Project

General

Profile

Actions

Defect #32885

closed

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

Added by Go MAEDA almost 5 years ago. Updated over 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 #1

Updated by Go MAEDA almost 5 years ago

  • Related to Feature #29914: Migrate to Rails 6.1 with Zeitwerk autoloading added
Actions #2

Updated by Marius BĂLTEANU over 3 years ago

  • Tracker changed from Patch to Defect
Actions #3

Updated by Go MAEDA over 3 years ago

  • Status changed from New to Closed
  • Resolution set to Fixed

Done in r20886 as a part of #29914.

Actions #4

Updated by Pavel Rosický over 3 years ago

why not use the source directly? see the patch file

Actions

Also available in: Atom PDF