Remove the report_type helper and use the model_name.human to look up translations.
[rails.git] / app / helpers / issues_helper.rb
index 8452cbd608331921246f1c2ce0e3aabe907bf90a..b0e598d7095779d34ce3059cf8702985f35a808e 100644 (file)
@@ -46,19 +46,4 @@ module IssuesHelper
       link_to "Show Instance", :controller => :browse, :action => :note, :id => reportable.id
     end
   end
-
-  def report_type(report_class)
-    case report_class
-    when "DiaryEntry"
-      t("activerecord.models.diary_entry")
-    when "User"
-      t("activerecord.models.user")
-    when "DiaryComment"
-      t("activerecord.models.diary_comment")
-    when "Changeset"
-      t("activerecord.models.changeset")
-    when "Note"
-      t("activerecord.models.note")
-    end
-  end
 end