From 6e9fbcc95672ea59edf95b0a52b689a0b2a69a7e Mon Sep 17 00:00:00 2001 From: Ryan Fitzgerald Date: Sun, 22 Jan 2012 22:54:23 -0800 Subject: [PATCH] two fixes for Rails 3.2 compatibility --- lib/pry-rails.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pry-rails.rb b/lib/pry-rails.rb index 4937901..b1d9df1 100644 --- a/lib/pry-rails.rb +++ b/lib/pry-rails.rb @@ -7,7 +7,9 @@ module PryRails begin require 'pry' ::IRB = Pry - IRB::ExtendCommandBundle = Pry + unless defined?(IRB::ExtendCommandBundle) + IRB::ExtendCommandBundle = Module.new + end rescue LoadError end end