4 def report_link(name, reportable)
5 link_to name, new_report_url(:reportable_id => reportable.id, :reportable_type => reportable.class.name)
8 # Convert a list of strings into objects with methods that the collection_radio_buttons helper expects
9 def report_categories(reportable)
10 Report.categories_for(reportable).map do |c|
11 OpenStruct.new(:id => c, :label => t(".categories.#{reportable.class.name.underscore}.#{c}_label"))