Remove the report_type helper and use the model_name.human to look up translations.

This commit is contained in:
Andy Allan 2018-02-28 11:40:00 +08:00
parent b955a7e78e
commit 38efcc2f33
2 changed files with 1 additions and 16 deletions

View 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