FIX: remove storage_stats from the list of reports, too specific (#6817)

This commit is contained in:
Joffrey JAFFEUX 2018-12-27 22:21:08 +01:00 committed by GitHub
parent 695894d458
commit 1d62d3df6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ class Admin::ReportsController < Admin::AdminController
ApplicationRequest.req_types.keys
.select { |r| r =~ /^page_view_/ && r !~ /mobile/ }
.map { |r| r + "_reqs" } +
Report.singleton_methods.grep(/^report_(?!about)/)
Report.singleton_methods.grep(/^report_(?!about|storage_stats)/)
reports = reports_methods.map do |name|
type = name.to_s.gsub('report_', '')