Remove the report_type helper and use the model_name.human to look up translations.
This commit is contained in:
parent
b955a7e78e
commit
38efcc2f33
2 changed files with 1 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue