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:
parent
f7866cdac1
commit
59b2daba4f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue