Module: Rails

Defined in:
lib/brick.rb

Overview

Rails < 4.2 does not have env

Class Method Summary collapse

Class Method Details

.envObject



1115
1116
1117
# File 'lib/brick.rb', line 1115

def self.env
  @_env ||= ActiveSupport::StringInquirer.new(ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development")
end

.env=(environment) ⇒ Object



1119
1120
1121
# File 'lib/brick.rb', line 1119

def self.env=(environment)
  @_env = ActiveSupport::StringInquirer.new(environment)
end