Actions
Defect #32885
closedRails 6: DEPRECATION WARNING: Single arity template handlers are deprecated
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
Related issues
Updated by Go MAEDA almost 5 years ago
- Related to Feature #29914: Migrate to Rails 6.1 with Zeitwerk autoloading added
Updated by Marius BĂLTEANU over 3 years ago
- Tracker changed from Patch to Defect
Updated by Pavel Rosický over 3 years ago
- File template.diff template.diff added
why not use the source directly? see the patch file
Actions