Sha256: 45c277a3ae8c5377669e674f96925a9a5dd4d10cfc477ae3028e4d1a17f0371c

Contents?: true

Size: 386 Bytes

Versions: 2

Compression:

Stored size: 386 Bytes

Contents

module Footnotes
  module Notes
    class CookiesNote < AbstractNote
      def initialize(controller)
        @cookies = (controller.__send__(:cookies) || {}).dup.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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails-footnotes-3.7.4 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-3.7.3 lib/rails-footnotes/notes/cookies_note.rb