Dead simple version of rack-flash. You still use flash without session, but remember that they can't work after a redirect.
register Padrino::Contrib::Helpers::Flash
# File lib/padrino-contrib/helpers/flash.rb, line 14 def self.registered(app) app.before { @_flash, session[:_flash] = session[:_flash], nil if settings.sessions? && session[:_flash] } app.helpers InstanceMethods end
[Validate]
Generated with the Darkfish Rdoc Generator 2.