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