Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
No need to create array every time, nor strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
pat committed Aug 25, 2012
1 parent d0c4749 commit 6ba7b48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/metrics/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module Metrics
module Rails
extend SingleForwardable
CONFIG_SETTABLE = %w{api_key email flush_interval prefix source}
FORKING_SERVERS = [:unicorn, :passenger]

mattr_accessor :config_file

Expand Down Expand Up @@ -167,7 +168,7 @@ def app_server
end

def forking_server?
%w{unicorn passenger}.include?(app_server.to_s)
FORKING_SERVERS.include?(app_server)
end

def install_worker_check
Expand Down

0 comments on commit 6ba7b48

Please sign in to comment.