Module: Padrino::Flash

Defined in:
lib/vendored-middleman-deps/padrino-core-0.11.2/lib/padrino-core/application/flash.rb

Defined Under Namespace

Modules: Helpers Classes: Storage

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object



6
7
8
9
10
11
# File 'lib/vendored-middleman-deps/padrino-core-0.11.2/lib/padrino-core/application/flash.rb', line 6

def registered(app)
  app.helpers Helpers
  app.after do
    session[:_flash] = @_flash.next if @_flash
  end
end