We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d34c680 commit 23ccd78Copy full SHA for 23ccd78
1 file changed
app/controllers/admin_controller.rb
@@ -15,10 +15,12 @@ def error_reports
15
ErrorLog.all
16
else
17
ErrorLog.where(community: RequestContext.community)
18
- end.includes(:community, :user)
+ end
19
20
@error_types = base_scope.select(:klass).distinct.to_a.map(&:klass)
21
22
+ base_scope = base_scope.includes(:community, :user)
23
+
24
if params[:type].present?
25
base_scope = base_scope.where(klass: params[:type])
26
end
0 commit comments