Sha256: e81e9b2762dbdb6680cf172ebdd9a87c45a3c0163920c2a6e367548aa11638c2

Contents?: true

Size: 356 Bytes

Versions: 27

Compression:

Stored size: 356 Bytes

Contents

module Footnotes
  module Notes
    class CookiesNote < AbstractNote
      def initialize(controller)
        @cookies = controller.request.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

27 entries across 27 versions & 2 rubygems

Version Path
rails-footnotes-3.7.8 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-3.7.7 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-3.7.6 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-3.7.5 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-3.7.5.rc4 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-3.7.5.rc3 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-3.7.5.rc2 lib/rails-footnotes/notes/cookies_note.rb