module Padrino::Flash

Public Class Methods

registered(app) click to toggle source
# File lib/padrino-core/application/flash.rb, line 5
def registered(app)
  app.helpers Helpers
  app.after do
    session[:_flash] = @_flash.next if @_flash
  end
end