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-7.1.0 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-7.0.1 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-7.0.0 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-5.0.0 lib/rails-footnotes/notes/cookies_note.rb
rails6-footnotes-5.0.2 lib/rails-footnotes/notes/cookies_note.rb
rails6-footnotes-5.0.1 lib/rails-footnotes/notes/cookies_note.rb
rails6-footnotes-5.0.0 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-4.1.8 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-4.1.7 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-4.1.6 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-4.1.5 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-4.1.4 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-4.1.3 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-4.1.2 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-4.1.1 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-4.1.0 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-4.0.2 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-4.0.1 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-4.0.0 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-3.7.9 lib/rails-footnotes/notes/cookies_note.rb