only notify hoptoad if it is configured

This commit is contained in:
Maxwell Salzberg 2012-01-03 20:03:51 -08:00
parent 8a48c5c720
commit 9de84cbba2

View file

@ -41,7 +41,7 @@ module ResqueJobLogging
:controller => "Resque",
:action => self.name
}
) if Rails.env.production?
) if Rails.env.production? && AppConfig[:hoptoad_api_key].present?
end
def application_trace(error) #copied from ActionDispatch::ShowExceptions