Skip to content
Open
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/sinatra/flash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ def self.registered(app)

# This callback rotates any flash structure we referenced, placing the 'next' hash into the session
# for the next request.
app.after {@flash.each{|key, flash| session[key] = @flash[key].next} if @flash}
app.after {@flash.each{|key, flash| session[key] = @flash[key].next} if defined? @flash}
end

end

register Flash
end
end