Module: Rails::ConsoleHelper

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

Overview

:nodoc:

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Methods included from ActiveSupport::Concern

append_features, class_methods, extended, included

Instance Method Details

#environmentObject


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

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