mirror of
https://github.com/redmine/redmine.git
synced 2026-09-01 04:56:21 +02:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user