Class Footnotes::Notes::CookiesNote
In: lib/rails-footnotes/notes/cookies_note.rb
Parent: AbstractNote

Methods

content   new   title  

Public Class methods

[Source]

# File lib/rails-footnotes/notes/cookies_note.rb, line 6
      def initialize(controller)
        @cookies = (controller.__send__(:cookies) || {}).symbolize_keys
      end

Public Instance methods

[Source]

# File lib/rails-footnotes/notes/cookies_note.rb, line 14
      def content
        escape(@cookies.inspect)
      end

[Source]

# File lib/rails-footnotes/notes/cookies_note.rb, line 10
      def title
        "Cookies (#{@cookies.length})"
      end

[Validate]