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