diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-11-29 15:40:46 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-11-29 15:40:46 -0800 |
commit | d9c288207731e61c40ce6276fd91f0b800d3fabb (patch) | |
tree | 0b3e661fa4a9c74f56c95f008815d7ff87e41b3e /activesupport/lib/active_support | |
parent | c606fe2c6f1112d13b5ff01f3204e29cbdb09649 (diff) | |
download | rails-d9c288207731e61c40ce6276fd91f0b800d3fabb.tar.gz rails-d9c288207731e61c40ce6276fd91f0b800d3fabb.tar.bz2 rails-d9c288207731e61c40ce6276fd91f0b800d3fabb.zip |
Module#synchronize is deprecated with no replacement. Please use `monitor` from ruby's standard library.
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/core_ext/module/synchronization.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/synchronization.rb b/activesupport/lib/active_support/core_ext/module/synchronization.rb index ed16c2f71b..061621c0ef 100644 --- a/activesupport/lib/active_support/core_ext/module/synchronization.rb +++ b/activesupport/lib/active_support/core_ext/module/synchronization.rb @@ -1,6 +1,7 @@ require 'thread' require 'active_support/core_ext/module/aliasing' require 'active_support/core_ext/array/extract_options' +require 'active_support/core_ext/module/deprecation' class Module # Synchronize access around a method, delegating synchronization to a @@ -40,4 +41,5 @@ class Module alias_method_chain method, :synchronization end end + deprecate :synchronize end |