This method is deprecated or moved on the latest stable version.
The last existing version (v2.3.8) is shown here.
sweep(#:nodoc:)
public
Mark for removal entries that were kept, and delete unkept ones.
This method is called automatically by filters, so you generally
don’t need to care about it.
# File actionpack/lib/action_controller/flash.rb, line 114
def sweep #:nodoc:
keys.each do |k|
unless @used[k]
use(k)
else
delete(k)
@used.delete(k)
end
end
# clean up after keys that could have been left over by calling reject! or shift on the flash
(@used.keys - keys).each{ |k| @used.delete(k) }
end