Add user permissions for flagging and for giving user feedback

This commit is contained in:
Albert Yi
2018-12-11 16:41:20 -08:00
parent c34df49f0f
commit 4706cae114
10 changed files with 96 additions and 6 deletions

View File

@@ -57,7 +57,9 @@ class PopularSearchService
rescue => e
Rails.logger.error(e.to_s)
NewRelic::Agent.notice_error(e)
if defined?(NewRelic)
NewRelic::Agent.notice_error(e)
end
return []
end
end