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:
commit
e009c5fca1
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue