Method: ScoutRailsProxy::Environment#env

Defined in:
lib/scout_rails_proxy/environment.rb

#envObject



4
5
6
7
8
9
10
11
# File 'lib/scout_rails_proxy/environment.rb', line 4

def env
  @env ||= case framework
           when :rails then RAILS_ENV.dup
           when :rails3 then Rails.env
           when :sinatra
             ENV['RACK_ENV'] || ENV['RAILS_ENV'] || 'development'
           end
end