Skip to content

Commit

Permalink
Add irbrc
Browse files Browse the repository at this point in the history
  • Loading branch information
mogelbrod committed Jun 7, 2011
1 parent 9364cab commit 791d62e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions irbrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
if defined?(RAILS_ENV)
# Called after the irb session is initialized and Rails has been loaded
IRB.conf[:IRB_RC] = Proc.new do
logger = Logger.new(STDOUT)
ActiveRecord::Base.logger = logger
ActiveResource::Base.logger = logger
end
end

0 comments on commit 791d62e

Please sign in to comment.