New relic initialize now rubocop friendly

This commit is contained in:
Priit Tark 2015-05-27 12:37:43 +03:00
parent 3b50ab2452
commit 5cff61ee50

View file

@ -1,5 +1,3 @@
# rubocop:disable Metrics/LineLength
unless Rails.env.test?
NewRelic::Agent.config[:app_name] = "#{ENV['new_relic_app_name']} - #{Rails.env}" if ENV['new_relic_app_name'].present?
if !Rails.env.test? && ENV['new_relic_app_name'].present?
NewRelic::Agent.config[:app_name] = "#{ENV['new_relic_app_name']} - #{Rails.env}"
end
# rubocop:enable Metrics/LineLength