Sha256: 1d3c46e6263f92bf781fd6ed48d5fa45a972b9ee9e25990f9db50b751231e8ce
Contents?: true
Size: 534 Bytes
Versions: 4
Compression:
Stored size: 534 Bytes
Contents
require "#{File.dirname(__FILE__)}/abstract_note" module Footnotes module Notes class FlashNote < AbstractNote def initialize(controller) @flash = {} if controller.respond_to? :flash controller.flash.keys.each do |key| @flash[key] = controller.flash[key] end end end def title "Flash (#{@flash.length})" end def content mount_table_for_hash(@flash, :summary => "Debug information for #{title}") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems