We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6ce984 commit a668befCopy full SHA for a668bef
actionpack/lib/action_dispatch/middleware/flash.rb
@@ -1,3 +1,5 @@
1
+require 'active_support/core_ext/hash/keys'
2
+
3
module ActionDispatch
4
class Request < Rack::Request
5
# Access the contents of the flash. Use <tt>flash["notice"]</tt> to
@@ -94,7 +96,7 @@ def to_session_value
94
96
95
97
def initialize(flashes = {}, discard = []) #:nodoc:
98
@discard = Set.new(stringify_array(discard))
- @flashes = flashes
99
+ @flashes = flashes.stringify_keys
100
@now = nil
101
end
102
0 commit comments