Permalink
Browse files

auto load and enable hirb in Rails console if it's available

  • Loading branch information...
1 parent 594c8a5 commit a396e3f096231066e3dd3cdc86179905433b3670 @ryanb committed Aug 4, 2009
Showing with 6 additions and 0 deletions.
  1. +6 −0 railsrc
View
@@ -1,5 +1,11 @@
#!/usr/bin/ruby
+begin
+ require 'hirb' # sudo gem install cldwalker-hirb --source http://gems.github.com
+ Hirb.enable
+rescue LoadError
+end
+
def change_log(stream)
ActiveRecord::Base.logger = Logger.new(stream)
ActiveRecord::Base.clear_active_connections!

0 comments on commit a396e3f

Please sign in to comment.