instance method env_color

Ruby on Rails edge

Since edge

Signature

env_color()

No documentation comment.

Source
# File railties/lib/rails/commands/console/irb_console.rb, line 197
      def env_color
        case Rails.env
        when "development", "test"
          :BLUE
        when "production"
          :RED
        else
          :MAGENTA
        end
      end

Defined in railties/lib/rails/commands/console/irb_console.rb line 197 · 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