Skip to content
Browse files

Thread Safety: Ensure recognize_optimized is immediately written inst…

…ead of lazily
  • Loading branch information...
1 parent c94ba81 commit 0f651aec4eb4630945d02571fe542414ef628c5c @josh josh committed
Showing with 1 addition and 7 deletions.
  1. +1 −7 actionpack/lib/action_controller/routing/recognition_optimisation.rb
View
8 actionpack/lib/action_controller/routing/recognition_optimisation.rb
@@ -153,13 +153,7 @@ def recognize_optimized(path, env)
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!

0 comments on commit 0f651ae

Please sign in to comment.
Something went wrong with that request. Please try again.