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

include Rails::ConsoleMethods

This commit is contained in:
Scott Watermasysk 2012-01-27 11:14:35 -05:00
parent c028ebdafd
commit f915133a08

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