Module: Rails::ConsoleHelper

Extended by:
ActiveSupport::Concern
Included in:
Console, DBConsole
Defined in:
lib/rails/commands/console_helper.rb

Overview

:nodoc:

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#environmentObject


30
31
32
# File 'lib/rails/commands/console_helper.rb', line 30

def environment
  ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development"
end