aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/journey/nfa/transition_table.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-11-29 09:04:47 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-11-29 09:04:47 -0200
commit390449ab8c55dacc08517bc270c6203bb1f50e02 (patch)
treee87455ea620155254511180cc1f08c5544ed195c /actionpack/lib/action_dispatch/journey/nfa/transition_table.rb
parent56e47cf66d2e3009b4032d0cd2ceb1a6e5e42573 (diff)
parentd1374f99bf3090f3e659687c112ed0c5c0865cfb (diff)
downloadrails-390449ab8c55dacc08517bc270c6203bb1f50e02.tar.gz
rails-390449ab8c55dacc08517bc270c6203bb1f50e02.tar.bz2
rails-390449ab8c55dacc08517bc270c6203bb1f50e02.zip
Merge pull request #16833 from sferik/symbol_to_proc
Pass symbol as an argument instead of a block
Diffstat (limited to 'actionpack/lib/action_dispatch/journey/nfa/transition_table.rb')
-rw-r--r--actionpack/lib/action_dispatch/journey/nfa/transition_table.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/journey/nfa/transition_table.rb b/actionpack/lib/action_dispatch/journey/nfa/transition_table.rb
index 66e414213a..e65f7238ab 100644
--- a/actionpack/lib/action_dispatch/journey/nfa/transition_table.rb
+++ b/actionpack/lib/action_dispatch/journey/nfa/transition_table.rb
@@ -107,7 +107,7 @@ module ActionDispatch
end
def alphabet
- inverted.values.flat_map(&:keys).compact.uniq.sort_by { |x| x.to_s }
+ inverted.values.flat_map(&:keys).compact.uniq.sort_by(&:to_s)
end
# Returns a set of NFA states reachable from some NFA state +s+ in set