Defect #32885

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

Added by Go MAEDA over 1 year ago. Updated 7 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:


Category:Rails support
Target version:-
Resolution:Fixed Affected version:


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.
  >>, source)
 (called from <top (required)> at /path/to/redmine/lib/redmine.rb:353)

fix-single-arity-template-handlers-are-deprecated.patch Magnifier (548 Bytes) Go MAEDA, 2020-01-26 10:00

template.diff Magnifier - a small improvement (755 Bytes) Pavel Rosický, 2021-04-01 20:11

Related issues

Related to Redmine - Feature #29914: Migrate to Rails 6.1 New


#1 Updated by Go MAEDA over 1 year ago

#2 Updated by Marius BALTEANU 7 months ago

  • Tracker changed from Patch to Defect

#3 Updated by Go MAEDA 7 months ago

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

Done in r20886 as a part of #29914.

#4 Updated by Pavel Rosický 7 months ago

why not use the source directly? see the patch file

Also available in: Atom PDF