lib/rack/flash.rb in rack-flash3-1.0.2 vs lib/rack/flash.rb in rack-flash3-1.0.3
- old
+ new
@@ -47,10 +47,10 @@
[cache, values].any? { |store| store.keys.include?(key.to_sym) }
end
alias_method :include?, :has?
def keys
- cache.keys.merge(values.keys)
+ cache.keys | values.keys
end
# Mark existing entries to allow for sweeping.
def flag!
@flagged = values.keys