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 #11 from scottwater/rails_32

Use TOPLEVEL_BINDING instead of adding to Object.
This commit is contained in:
Robin Wenglewski 2012-02-06 23:29:50 -08:00
commit 75b8e3a4b8

View file

@ -13,7 +13,7 @@ module PryRails
if ::Rails::VERSION::MINOR >= 2
require "rails/console/app"
require "rails/console/helpers"
Object.send(:include, Rails::ConsoleMethods)
TOPLEVEL_BINDING.eval('self').extend Rails::ConsoleMethods
end
rescue LoadError
end