Skip to content
Browse files

- Fixed 1.8.6 bug

  • Loading branch information...
1 parent bbc5109 commit 54e5825638138af1957e7ebf3ce7d94aacf33a6f Brian Takita committed Feb 16, 2010
Showing with 5 additions and 1 deletion.
  1. +4 −0 CHANGES
  2. +1 −1 lib/rr/injections/double_injection.rb
View
4 CHANGES
@@ -1,3 +1,7 @@
+0.10.8
+- Fixed 1.8.6 bug
+
+0.10.7
- Fixed issue with DoubleInjections binding to objects overriding the method method.
0.10.6
View
2 lib/rr/injections/double_injection.rb
@@ -102,7 +102,7 @@ def bypass_bound_method
def subject_is_proxy_for_method?(method_name)
subject_eigen = (class << @subject; self; end)
method_owner = subject_eigen.instance_methods.include?(method_name.to_s) ? subject_eigen.instance_method(method_name).owner : nil
- !method_owner || !(subject_class.object_id == method_owner.object_id || subject_class.ancestors.include?(method_owner))
+ !method_owner
end
def deferred_bind_method

0 comments on commit 54e5825

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