Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/lotus/action/flash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def empty?
# @since x.x.x
# @api private
def flash
@session[SESSION_KEY]
@session[SESSION_KEY] || {}
end

# The flash registry that holds the data **only for** the current request
Expand All @@ -94,7 +94,7 @@ def flash
# @since x.x.x
# @api private
def data
flash[@request_id]
flash[@request_id] || {}
end

# Expire the stale data from the previous request.
Expand Down