Skip to content

Instantly share code, notes, and snippets.

@diasjorge
Created March 6, 2009 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diasjorge/74670 to your computer and use it in GitHub Desktop.
Save diasjorge/74670 to your computer and use it in GitHub Desktop.
unless ENV['INSIDE_EMACS']
# load libraries
require 'rubygems'
require 'wirble'
# start wirble (with color)
Wirble.init
Wirble.colorize
end
# Log to STDOUT if in Rails
if ENV.include?('RAILS_ENV') && !Object.const_defined?('RAILS_DEFAULT_LOGGER')
require 'logger'
RAILS_DEFAULT_LOGGER = Logger.new(STDOUT)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment