Create a report_link helper, and use text instead of a flag icon

This commit is contained in:
Andy Allan 2018-03-21 17:14:56 +08:00
parent ee1a8637d3
commit 32d1afbb18
7 changed files with 22 additions and 22 deletions

View file

@ -0,0 +1,5 @@
module ReportsHelper
def report_link(name, reportable)
link_to name, new_report_url(:reportable_id => reportable.id, :reportable_type => reportable.class.name)
end
end