method

environment

environment()
public

No documentation available.

# File railties/lib/rails/commands/dbconsole.rb, line 107
    def environment
      if Rails.respond_to?(:env)
        Rails.env
      else
        ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development"
      end
    end