Sha256: 1df5cc8fdd05001f9b4bd182a36c16eaa5ca721b881d37f4654fc7b214c3bdfb

Contents?: true

Size: 359 Bytes

Versions: 1

Compression:

Stored size: 359 Bytes

Contents

module Footnotes
  module Notes
    class CookiesNote < AbstractNote
      def initialize(controller)
        @cookies = controller.__send__(:cookies)
      end

      def title
        "Cookies (#{@cookies.length})"
      end

      def content
        mount_table_for_hash(@cookies, :summary => "Debug information for #{title}")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails-footnotes-3.7.5.rc1 lib/rails-footnotes/notes/cookies_note.rb