Module: Padrino::Flash

Defined in:
lib/padrino-core/application/flash.rb

Defined Under Namespace

Modules: Helpers Classes: Storage

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object



5
6
7
8
9
10
# 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