mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-20 14:11:11 +00:00

This ensures the application can still boot when the "development" group is not available.
20 lines
316 B
Ruby
20 lines
316 B
Ruby
require 'securerandom'
|
|
|
|
module Gitlab
|
|
module Sherlock
|
|
@collection = Collection.new
|
|
|
|
class << self
|
|
attr_reader :collection
|
|
end
|
|
|
|
def self.enabled?
|
|
Rails.env.development? && !!ENV['ENABLE_SHERLOCK']
|
|
end
|
|
|
|
def self.enable_line_profiler?
|
|
RUBY_ENGINE == 'ruby'
|
|
end
|
|
end
|
|
end
|