Backport r24426 to 5.1-stable (#43661).

git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@24473 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2026-03-05 02:25:24 +00:00
parent a1b0b37726
commit bae943db12

View File

@@ -67,10 +67,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, value| eval("api.#{key} value")}
end
end