We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9a0e280 + 64e43e4 commit 1f61da9Copy full SHA for 1f61da9
1 file changed
lib/split/dashboard.rb
@@ -26,7 +26,7 @@ class Dashboard < Sinatra::Base
26
@metrics = Split::Metric.all
27
28
# Display Rails Environment mode (or Rack version if not using Rails)
29
- if Object.const_defined?("Rails")
+ if Object.const_defined?("Rails") && Rails.respond_to?(:env)
30
@current_env = Rails.env.titlecase
31
else
32
@current_env = "Rack: #{Rack.version}"
0 commit comments