diff options
author | Nick <nick@nicksieger.com> | 2008-04-19 11:59:01 -0500 |
---|---|---|
committer | Nick Sieger <nick@nicksieger.com> | 2008-08-29 14:12:09 -0500 |
commit | b185d157fe5c14ecac348558d0c0b42658de7097 (patch) | |
tree | 20a687e0dc14b0f3e5e43dad7b6f277ad97cbebc /activesupport/lib/active_support | |
parent | 9dc4f6611043d032e576d93430cd29efc8864bc4 (diff) | |
download | rails-b185d157fe5c14ecac348558d0c0b42658de7097.tar.gz rails-b185d157fe5c14ecac348558d0c0b42658de7097.tar.bz2 rails-b185d157fe5c14ecac348558d0c0b42658de7097.zip |
Module#synchronize: Add testcase to ensure that singleton methods can be wrapped
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/core_ext/module/synchronization.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/synchronization.rb b/activesupport/lib/active_support/core_ext/module/synchronization.rb index c55a3f07ee..7d54d496ab 100644 --- a/activesupport/lib/active_support/core_ext/module/synchronization.rb +++ b/activesupport/lib/active_support/core_ext/module/synchronization.rb @@ -20,7 +20,6 @@ class Module methods.each do |method| aliased_method, punctuation = method.to_s.sub(/([?!=])$/, ''), $1 - if instance_methods.include?("#{aliased_method}_without_synchronization#{punctuation}") raise ArgumentError, "#{method} is already synchronized. Double synchronization is not currently supported." end |