Class: Callstacking::Rails::Env
- Inherits:
-
Object
- Object
- Callstacking::Rails::Env
- Defined in:
- lib/callstacking/rails/env.rb
Constant Summary collapse
- DEFAULT_ENVIRONMENT =
'development'.freeze
- @@environment =
(ENV['RAILS_ENV'] || DEFAULT_ENVIRONMENT).parameterize(separator: '_').to_sym
Class Method Summary collapse
Class Method Details
.production? ⇒ Boolean
12 13 14 |
# File 'lib/callstacking/rails/env.rb', line 12 def self.production? @@environment == DEFAULT_ENVIRONMENT.parameterize(separator: '_').to_sym end |