aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/dependencies.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-05-19 16:37:41 -0300
committerJosé Valim <jose.valim@gmail.com>2010-05-20 15:18:57 +0200
commitaacf2581cde0147dc66c3eeacf6d7447c2bbafdf (patch)
treea7f099044c0e8678454af5852a415c757c567c94 /activesupport/lib/active_support/dependencies.rb
parent7f07cc364a7ee7ceae21b29b54467fde0db93389 (diff)
downloadrails-aacf2581cde0147dc66c3eeacf6d7447c2bbafdf.tar.gz
rails-aacf2581cde0147dc66c3eeacf6d7447c2bbafdf.tar.bz2
rails-aacf2581cde0147dc66c3eeacf6d7447c2bbafdf.zip
refactor evals and adds some __FILE__ and __LINE__
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activesupport/lib/active_support/dependencies.rb')
-rw-r--r--activesupport/lib/active_support/dependencies.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb
index 9c4412c28c..e14e225596 100644
--- a/activesupport/lib/active_support/dependencies.rb
+++ b/activesupport/lib/active_support/dependencies.rb
@@ -66,7 +66,7 @@ module ActiveSupport #:nodoc:
end
def self.locked(*methods)
- methods.each { |m| class_eval "def #{m}(*) lock { super } end" }
+ methods.each { |m| class_eval "def #{m}(*) lock { super } end", __FILE__, __LINE__ }
end
def get(key)