Skip to content
This repository
Browse code

- Fixed 1.8.6 bug

  • Loading branch information...
commit 54e5825638138af1957e7ebf3ce7d94aacf33a6f 1 parent bbc5109
Brian Takita authored

Showing 2 changed files with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. +4 0 CHANGES
  2. +1 1  lib/rr/injections/double_injection.rb
4 CHANGES
... ... @@ -1,3 +1,7 @@
  1 +0.10.8
  2 +- Fixed 1.8.6 bug
  3 +
  4 +0.10.7
1 5 - Fixed issue with DoubleInjections binding to objects overriding the method method.
2 6
3 7 0.10.6
2  lib/rr/injections/double_injection.rb
@@ -102,7 +102,7 @@ def bypass_bound_method
102 102 def subject_is_proxy_for_method?(method_name)
103 103 subject_eigen = (class << @subject; self; end)
104 104 method_owner = subject_eigen.instance_methods.include?(method_name.to_s) ? subject_eigen.instance_method(method_name).owner : nil
105   - !method_owner || !(subject_class.object_id == method_owner.object_id || subject_class.ancestors.include?(method_owner))
  105 + !method_owner
106 106 end
107 107
108 108 def deferred_bind_method

0 comments on commit 54e5825

Please sign in to comment.
Something went wrong with that request. Please try again.