diff --git a/app/helpers/icons_helper.rb b/app/helpers/icons_helper.rb
index bcd887be1..d91995326 100644
--- a/app/helpers/icons_helper.rb
+++ b/app/helpers/icons_helper.rb
@@ -90,7 +90,7 @@ module IconsHelper
sprite_icon(icon_name, **)
end
- def mime_type_icon(mime_type, ...)
+ def file_type_icon(mime_type, ...)
icon_name = icon_for_mime_type(mime_type)
sprite_icon(icon_name, ...)
end
diff --git a/app/views/attachments/edit_all.html.erb b/app/views/attachments/edit_all.html.erb
index 15b46c5e0..3b1800c5b 100644
--- a/app/views/attachments/edit_all.html.erb
+++ b/app/views/attachments/edit_all.html.erb
@@ -11,7 +11,7 @@
<% @attachments.each do |attachment| %>
|
- <%= mime_type_icon(attachment.content_type_was, attachment.filename_was) %>
+ <%= file_type_icon(attachment.content_type_was, attachment.filename_was) %>
(<%= number_to_human_size attachment.filesize %>)
<%= attachment.author %>, <%= format_time(attachment.created_on) %>
|
diff --git a/app/views/issues/_edit.html.erb b/app/views/issues/_edit.html.erb
index 78155c9b8..a21570816 100644
--- a/app/views/issues/_edit.html.erb
+++ b/app/views/issues/_edit.html.erb
@@ -54,7 +54,7 @@
<% @issue.attachments.each do |attachment| %>
- <%= mime_type_icon(attachment.content_type, size: 12) %>
+ <%= file_type_icon(attachment.content_type, size: 12) %>
<%= text_field_tag '', attachment.filename, :class => "icon icon-attachment filename", :disabled => true %>