mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 16:53:37 +02:00
New relic initialize now rubocop friendly
This commit is contained in:
parent
3b50ab2452
commit
5cff61ee50
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue