require "#{File.dirname(__FILE__)}/abstract_note" module Footnotes module Notes class CookiesNote < AbstractNote def initialize(controller) @cookies = (controller.__send__(:cookies) || {}).symbolize_keys end def title "Cookies (#{@cookies.length})" end def content mount_table_for_hash(@cookies, :summary => "Debug information for #{title}") end end end end