1
0
Fork 0
mirror of https://github.com/pry/pry-rails.git synced 2022-11-09 12:36:03 -05:00

Merge pull request #10 from scottwater/rails_32

Add Rails methods back to pry-rails
This commit is contained in:
Robin Wenglewski 2012-01-28 07:51:52 -08:00
commit e009c5fca1

View file

@ -10,6 +10,11 @@ module PryRails
unless defined?(IRB::ExtendCommandBundle)
IRB::ExtendCommandBundle = Module.new
end
if ::Rails::VERSION::MINOR >= 2
require "rails/console/app"
require "rails/console/helpers"
Object.send(:include, Rails::ConsoleMethods)
end
rescue LoadError
end
end