mirror of
https://github.com/github/rails.git
synced 2026-01-08 22:27:59 -05:00
Allow a false value to be returned from symbol keyed session
This commit is contained in:
@@ -55,7 +55,8 @@ module ActionController
|
||||
|
||||
def [](key)
|
||||
load_for_read!
|
||||
super(key.to_s) || super(key)
|
||||
string_value = super(key.to_s)
|
||||
string_value.nil? ? super(key) : string_value
|
||||
end
|
||||
|
||||
def has_key?(key)
|
||||
@@ -89,7 +90,7 @@ module ActionController
|
||||
load_for_write!
|
||||
value = super(key)
|
||||
string_value = super(key.to_s)
|
||||
string_value || value
|
||||
string_value.nil? ? value : string_value
|
||||
end
|
||||
|
||||
def data
|
||||
|
||||
Reference in New Issue
Block a user