Skip to content

Instantly share code, notes, and snippets.

@jpemberthy
Created May 14, 2013 17:13
Show Gist options
  • Select an option

  • Save jpemberthy/5577704 to your computer and use it in GitHub Desktop.

Select an option

Save jpemberthy/5577704 to your computer and use it in GitHub Desktop.
require 'rubygems' rescue nil
require 'wirble'
require 'hirb'
Wirble.init
Wirble.colorize
Hirb::View.enable
railsrc_path = File.expand_path('~/.railsrc')
if ( ENV['RAILS_ENV'] || defined? Rails ) && File.exist?( railsrc_path )
begin
load railsrc_path
rescue Exception
warn "Could not load: #{ railsrc_path }" # because of $!.message
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment