From df4f229ad3eee5683da776492776bcc2c8f5a123 Mon Sep 17 00:00:00 2001 From: Bodaniel Jeanes Date: Fri, 16 Dec 2011 15:23:59 -0600 Subject: [PATCH] Require rubygems into irb and don't set rails logger to STDOUT --- editors/vim/ui.vim | 1 - languages/ruby/irbrc | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/editors/vim/ui.vim b/editors/vim/ui.vim index 614e20a..b6d94a5 100644 --- a/editors/vim/ui.vim +++ b/editors/vim/ui.vim @@ -55,7 +55,6 @@ syntax on nnoremap g* g*zz nnoremap g# g#zz - " Tab completion set wildmode=list:longest,list:full set wildignore+=*.o,*.obj,.git,*.rbc,*.swp diff --git a/languages/ruby/irbrc b/languages/ruby/irbrc index 50af84d..9ece9ac 100755 --- a/languages/ruby/irbrc +++ b/languages/ruby/irbrc @@ -1,4 +1,5 @@ begin + require 'rubygems' unless defined? Gem require 'irbtools' rescue LoadError $stderr.puts "Please install 'irbtools' or add it to your Gemfile" @@ -12,9 +13,3 @@ class Object (obj.methods - obj.class.superclass.instance_methods).sort end end - -# Log to STDOUT if in Rails -if Object.const_defined?('ActiveRecord') - require 'logger' - ActiveRecord::Base.logger = Logger.new(STDOUT) -end