Module: Rails
- Defined in:
- lib/brick.rb
Overview
Rails < 4.2 does not have env
Class Method Summary collapse
Class Method Details
.env ⇒ Object
528 529 530 |
# File 'lib/brick.rb', line 528 def self.env @_env ||= ActiveSupport::StringInquirer.new(ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development") end |
.env=(environment) ⇒ Object
532 533 534 |
# File 'lib/brick.rb', line 532 def self.env=(environment) @_env = ActiveSupport::StringInquirer.new(environment) end |