Permalink
Browse files

store a symbol directly inside DISPATCH_CACHE for extra roflscale

  • Loading branch information...
1 parent 08f8c8a commit 5e356de2714b1f4845b6774655061bf9eeb9909f @charliesome charliesome committed Jun 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/journey/visitors.rb
@@ -4,7 +4,7 @@ module Journey # :nodoc:
module Visitors # :nodoc:
class Visitor # :nodoc:
DISPATCH_CACHE = Hash.new { |h,k|
- h[k] = "visit_#{k}"
+ h[k] = :"visit_#{k}"
}
def accept(node)

0 comments on commit 5e356de

Please sign in to comment.