diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-04-09 15:56:50 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-04-09 21:28:49 +0200 |
commit | 13e00ce6064fd1ce143071e3531e65f64047b013 (patch) | |
tree | 926d6d212b926d84432a71cb73814fe437d42655 /activesupport/lib/active_support/core_ext/module/synchronization.rb | |
parent | 8b2266a8dada979d72ff6eda4349a24be3b630eb (diff) | |
download | rails-13e00ce6064fd1ce143071e3531e65f64047b013.tar.gz rails-13e00ce6064fd1ce143071e3531e65f64047b013.tar.bz2 rails-13e00ce6064fd1ce143071e3531e65f64047b013.zip |
fix stack trace lines on class_eval
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activesupport/lib/active_support/core_ext/module/synchronization.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/module/synchronization.rb | 2 |
1 files changed, 1 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 115b8abd4e..de76a069d6 100644 --- a/activesupport/lib/active_support/core_ext/module/synchronization.rb +++ b/activesupport/lib/active_support/core_ext/module/synchronization.rb @@ -28,7 +28,7 @@ class Module raise ArgumentError, "#{method} is already synchronized. Double synchronization is not currently supported." end - module_eval(<<-EOS, __FILE__, __LINE__) + module_eval(<<-EOS, __FILE__, __LINE__ + 1) def #{aliased_method}_with_synchronization#{punctuation}(*args, &block) # def expire_with_synchronization(*args, &block) #{with}.synchronize do # @@lock.synchronize do #{aliased_method}_without_synchronization#{punctuation}(*args, &block) # expire_without_synchronization(*args, &block) |