instance method short_env

Ruby on Rails edge

Since edge

Signature

short_env()

No documentation comment.

Source
# File railties/lib/rails/commands/console/irb_console.rb, line 180
      def short_env
        case Rails.env
        when "development"
          "dev"
        when "test"
          "test"
        when "production"
          "prod"
        else
          Rails.env
        end
      end

Defined in railties/lib/rails/commands/console/irb_console.rb line 180 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Console::IRBConsole

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close