Require rubygems into irb and don't set rails logger to STDOUT

pull/2/head
Bodaniel Jeanes 2011-12-16 15:23:59 -06:00
parent aed1d1f9bf
commit df4f229ad3
2 changed files with 1 additions and 7 deletions

View File

@ -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

View File

@ -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