Sha256: 5a4d9a6b66cb845d635d7daddbe0f3be70ea788013b775eec7e17947a4a4aecc

Contents?: true

Size: 582 Bytes

Versions: 5

Compression:

Stored size: 582 Bytes

Contents

class DummyController < ApplicationController

  def multiple_keys
    flash[:notice] = 'This is a Notice'
    flash[:errors] = 'This is an Error'
    render :text => 'Foo'
  end

  def override
    flash[:notice] = 'original'
    flash[:notice] = 'message'
    render :text => 'Foo'
  end

  def stack
    flash[:notice] = 'original'
    flash[:notice] << 'message'
    flash[:notice] << 'another'
    render :text => 'Foo'
  end

  def cold_boot
    flash[:notice] << 'original'
    flash[:notice] << 'message'
    flash[:notice] << 'another'
    render :text => 'Foo'
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stackable_flash-0.1.1 spec/dummy/app/controllers/dummy_controller.rb
stackable_flash-0.0.7 spec/dummy/app/controllers/dummy_controller.rb
stackable_flash-0.0.6 spec/dummy/app/controllers/dummy_controller.rb
stackable_flash-0.0.5 spec/dummy/app/controllers/dummy_controller.rb
stackable_flash-0.0.4 spec/dummy/app/controllers/dummy_controller.rb