Sha256: cd72be4056f15f5c930ca5499c07ef8e4def482ac86d01fb6f043da634d8d8b6

Contents?: true

Size: 256 Bytes

Versions: 5

Compression:

Stored size: 256 Bytes

Contents

module Rawbotz
  module Helpers
    module FlashHelper
      def flash
        @flash = session[:flash]# || {}
      end
      def add_flash kind, msg
        session[:flash] ||= {}
        (session[:flash][kind] ||= []) << msg
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rawbotz-0.2.0 lib/rawbotz/helpers/flash_helper.rb
rawbotz-0.1.5 lib/rawbotz/helpers/flash_helper.rb
rawbotz-0.1.4 lib/rawbotz/helpers/flash_helper.rb
rawbotz-0.1.3 lib/rawbotz/helpers/flash_helper.rb
rawbotz-0.1.2 lib/rawbotz/helpers/flash_helper.rb