aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/proc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/core_ext/proc.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/proc.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/core_ext/proc.rb b/activesupport/lib/active_support/core_ext/proc.rb
index d50076a01e..71b413a88a 100644
--- a/activesupport/lib/active_support/core_ext/proc.rb
+++ b/activesupport/lib/active_support/core_ext/proc.rb
@@ -5,9 +5,9 @@ class Proc #:nodoc:
block, time = self, Time.now
object.class_eval do
method_name = "__bind_#{time.to_i}_#{time.usec}"
- define_method(method_name, &block) # define_method("__bind_1230458026_720454", &block)
- method = instance_method(method_name) # method = instance_method("__bind_1230458026_720454")
- remove_method(method_name) # remove_method("__bind_1230458026_720454")
+ define_method(method_name, &block)
+ method = instance_method(method_name)
+ remove_method(method_name)
method
end.bind(object)
end