1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Metrics::[] escues NameError only. Fix MODE typo.

This commit is contained in:
Jeremy Kemper 2008-06-15 14:48:15 -07:00
parent f7866cdac1
commit 59b2daba4f

View file

@ -168,7 +168,7 @@ module ActiveSupport
def self.[](name)
klass = const_get(name.to_s.camelize)
klass if klass::Mode
rescue
rescue NameError
nil
end
@ -192,7 +192,7 @@ module ActiveSupport
end
def profile
RubyProf.measure_mode = MODE
RubyProf.measure_mode = Mode
RubyProf.resume { yield }
end