Skip to content

Commit

Permalink
Use default hooks instead of create a new hooks, so we have maximum
Browse files Browse the repository at this point in the history
compatible with pry and inhert all new feature hook, like whereami
  • Loading branch information
Vo Anh Duy committed Mar 29, 2015
1 parent f4cc977 commit 074fb63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pry-remote.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def initialize(object, host = DefaultHost, port = DefaultPort, options = {})

# Code that has to be called for Pry-remote to work properly
def setup
@hooks = Pry::Hooks.new
@hooks = Pry::DEFAULT_HOOKS

@hooks.add_hook :before_eval, :pry_remote_capture do
capture_output
Expand Down

0 comments on commit 074fb63

Please sign in to comment.