Sha256: b58fd739c7737f12bb28206113d480781921ce0d6145dd5797677eed9015cc80

Contents?: true

Size: 387 Bytes

Versions: 10

Compression:

Stored size: 387 Bytes

Contents

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)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 5 rubygems

Version Path
artofmission-rails-footnotes-3.6.0.1 lib/rails-footnotes/notes/cookies_note.rb
artofmission-rails-footnotes-3.6.2 lib/rails-footnotes/notes/cookies_note.rb
josevalim-rails-footnotes-3.6.0 lib/rails-footnotes/notes/cookies_note.rb
josevalim-rails-footnotes-3.6.1 lib/rails-footnotes/notes/cookies_note.rb
josevalim-rails-footnotes-3.6.2 lib/rails-footnotes/notes/cookies_note.rb
omghax-rails-footnotes-3.6.1 lib/rails-footnotes/notes/cookies_note.rb
omghax-rails-footnotes-3.6.2 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-3.6.5 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-3.6.4 lib/rails-footnotes/notes/cookies_note.rb
rails-footnotes-linux-3.6.2 lib/rails-footnotes/notes/cookies_note.rb