From d09d914fa39c557c96b47f33c6590066e84ef2d1 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Tue, 17 Feb 2026 07:50:09 +0000 Subject: [PATCH] Remove broken and unused options handling from AttachmentsHelper#render_api_attachment (#43661). git-svn-id: https://svn.redmine.org/redmine/trunk@24421 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/attachments_helper.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/helpers/attachments_helper.rb b/app/helpers/attachments_helper.rb index 696b0eac5..41c3b16e5 100644 --- a/app/helpers/attachments_helper.rb +++ b/app/helpers/attachments_helper.rb @@ -66,10 +66,9 @@ module AttachmentsHelper end if @paginator end - def render_api_attachment(attachment, api, options={}) + def render_api_attachment(attachment, api, _options={}) api.attachment do render_api_attachment_attributes(attachment, api) - options.each_key {|key| eval("api.#{key} value")} end end