Skip to content

Instantly share code, notes, and snippets.

@lakshminarayanan
Created October 4, 2012 07:45
Show Gist options
  • Save lakshminarayanan/3832036 to your computer and use it in GitHub Desktop.
Save lakshminarayanan/3832036 to your computer and use it in GitHub Desktop.
Disable colors in rails console
# disappear the annoying ANSI codes for PowerShell and cmd
if RUBY_PLATFORM =~ /mswin|mingw/i
ActiveSupport::LogSubscriber.colorize_logging = false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment