diff --git a/app/helpers/attachments_helper.rb b/app/helpers/attachments_helper.rb index 9948fcdf9..bfc6aa257 100644 --- a/app/helpers/attachments_helper.rb +++ b/app/helpers/attachments_helper.rb @@ -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