lib/wat_catcher/report.rb in wat_catcher-0.5.2 vs lib/wat_catcher/report.rb in wat_catcher-0.5.3
- old
+ new
@@ -9,9 +9,10 @@
self.user = user
send_report
end
def send_report
+ return if WatCatcher.configuration.disabled
::WatCatcher::SidekiqPoster.perform_async("#{WatCatcher.configuration.host}/wats", params)
end
def params
{ wat: base_description