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
nnoremap g# g#zz nnoremap g# g#zz
" Tab completion " Tab completion
set wildmode=list:longest,list:full set wildmode=list:longest,list:full
set wildignore+=*.o,*.obj,.git,*.rbc,*.swp set wildignore+=*.o,*.obj,.git,*.rbc,*.swp

View File

@ -1,4 +1,5 @@
begin begin
require 'rubygems' unless defined? Gem
require 'irbtools' require 'irbtools'
rescue LoadError rescue LoadError
$stderr.puts "Please install 'irbtools' or add it to your Gemfile" $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 (obj.methods - obj.class.superclass.instance_methods).sort
end end
end end
# Log to STDOUT if in Rails
if Object.const_defined?('ActiveRecord')
require 'logger'
ActiveRecord::Base.logger = Logger.new(STDOUT)
end