Skip to content

Commit

Permalink
store a symbol directly inside DISPATCH_CACHE for extra roflscale
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Somerville committed Jun 30, 2013
1 parent 08f8c8a commit 5e356de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_dispatch/journey/visitors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5e356de

Please sign in to comment.