diff options
author | Michael S. Klishin <michael@novemberain.com> | 2008-12-28 22:05:27 +0300 |
---|---|---|
committer | Michael S. Klishin <michael@novemberain.com> | 2008-12-28 22:05:43 +0300 |
commit | 12bff2af4081c25682d0466b1d7380b702c27417 (patch) | |
tree | 50f12abeb5dc70f4a847e8a960e2a60ee026ad97 /activesupport/lib/active_support/core_ext/proc.rb | |
parent | 89e98955c79b39ec408efb39cde07d6f14997183 (diff) | |
parent | d77deb89d54b18c662ae3de103802e4d7a9d7d08 (diff) | |
download | rails-12bff2af4081c25682d0466b1d7380b702c27417.tar.gz rails-12bff2af4081c25682d0466b1d7380b702c27417.tar.bz2 rails-12bff2af4081c25682d0466b1d7380b702c27417.zip |
Sync with wycats/rails/master
Diffstat (limited to 'activesupport/lib/active_support/core_ext/proc.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/proc.rb | 6 |
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 2ca23f62ef..5c29cc32a2 100644 --- a/activesupport/lib/active_support/core_ext/proc.rb +++ b/activesupport/lib/active_support/core_ext/proc.rb @@ -3,9 +3,9 @@ class Proc #:nodoc: block, time = self, Time.now (class << object; self end).class_eval do method_name = "__bind_#{time.to_i}_#{time.usec}" - define_method(method_name, &block) - method = instance_method(method_name) - remove_method(method_name) + 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") method end.bind(object) end |