Project

General

Profile

Actions

Defect #43230

open

[Rails 8] ArgumentError: wrong number of arguments (given 0, expected 1) in ApplicationController#find_model_object

Added by Marius BĂLTEANU 3 days ago. Updated 1 day ago.

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

0%

Estimated time:
Resolution:
Affected version:

Description

Using Rails 8, multiple tests fail with the same error:

Error:
DocumentsControllerTest#test_add_attachment:
ArgumentError: wrong number of arguments (given 0, expected 1)
    app/controllers/application_controller.rb:392:in 'model_object'
    app/controllers/application_controller.rb:383:in 'ApplicationController#find_model_object'
    lib/redmine/sudo_mode.rb:78:in 'Redmine::SudoMode::Controller#sudo_mode'

I cannot find the exact issue from Rails that changed this behaviour and triggers this issue.


Files


Related issues

Blocks Redmine - Feature #43205: Update to Rails 8New

Actions
Actions

Also available in: Atom PDF