diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-10-27 12:34:54 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-10-27 12:34:54 -0500 |
commit | 0f651aec4eb4630945d02571fe542414ef628c5c (patch) | |
tree | ca610008c05695d6bfe1b0155bf1b893d364ba65 /actionpack/lib | |
parent | c94ba8150a726da4a894cd8325ee682a3286ec9f (diff) | |
download | rails-0f651aec4eb4630945d02571fe542414ef628c5c.tar.gz rails-0f651aec4eb4630945d02571fe542414ef628c5c.tar.bz2 rails-0f651aec4eb4630945d02571fe542414ef628c5c.zip |
Thread Safety: Ensure recognize_optimized is immediately written instead of lazily
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/routing/recognition_optimisation.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/actionpack/lib/action_controller/routing/recognition_optimisation.rb b/actionpack/lib/action_controller/routing/recognition_optimisation.rb index 4935432d87..6c47ced6d1 100644 --- a/actionpack/lib/action_controller/routing/recognition_optimisation.rb +++ b/actionpack/lib/action_controller/routing/recognition_optimisation.rb @@ -153,13 +153,7 @@ module ActionController def clear_recognize_optimized! remove_recognize_optimized! - - class << self - def recognize_optimized(path, environment) - write_recognize_optimized! - recognize_optimized(path, environment) - end - end + write_recognize_optimized! end def remove_recognize_optimized! |