Sha256: f433e03cbcfd36d8a109dc22a97e483341af88714e8c71e3a723f01bce27477f

Contents?: true

Size: 546 Bytes

Versions: 20

Compression:

Stored size: 546 Bytes

Contents

require "#{File.dirname(__FILE__)}/abstract_note"

module Footnotes
  module Notes
    class EnvNote < AbstractNote
      def initialize(controller)
        @env = controller.request.env.dup
      end

      def content
        # Replace HTTP_COOKIE for a link
        @env['HTTP_COOKIE'] = '<a href="#" style="color:#009" onclick="Footnotes.hideAllAndToggle(\'cookies_debug_info\');return false;">See cookies on its tab</a>'

        # Create the env table
        mount_table(@env.to_a.sort.unshift([:key, :value]))
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 8 rubygems

Version Path
artofmission-rails-footnotes-3.6.0.1 lib/rails-footnotes/notes/env_note.rb
artofmission-rails-footnotes-3.6.2 lib/rails-footnotes/notes/env_note.rb
ceritium-rails-footnotes-3.4.1.1 lib/rails-footnotes/notes/env_note.rb
ceritium-rails-footnotes-3.4.1 lib/rails-footnotes/notes/env_note.rb
ceritium-rails-footnotes-3.4 lib/rails-footnotes/notes/env_note.rb
josevalim-rails-footnotes-3.4.1 lib/rails-footnotes/notes/env_note.rb
josevalim-rails-footnotes-3.4 lib/rails-footnotes/notes/env_note.rb
josevalim-rails-footnotes-3.5.0 lib/rails-footnotes/notes/env_note.rb
josevalim-rails-footnotes-3.6.0 lib/rails-footnotes/notes/env_note.rb
josevalim-rails-footnotes-3.6.1 lib/rails-footnotes/notes/env_note.rb
josevalim-rails-footnotes-3.6.2 lib/rails-footnotes/notes/env_note.rb
lexrupy-rails-footnotes-3.4.1 lib/rails-footnotes/notes/env_note.rb
lexrupy-rails-footnotes-3.4 lib/rails-footnotes/notes/env_note.rb
omghax-rails-footnotes-3.6.1 lib/rails-footnotes/notes/env_note.rb
omghax-rails-footnotes-3.6.2 lib/rails-footnotes/notes/env_note.rb
rails-footnotes-3.6.5 lib/rails-footnotes/notes/env_note.rb
rails-footnotes-3.6.4 lib/rails-footnotes/notes/env_note.rb
scharfie-rails-footnotes-3.5.0 lib/rails-footnotes/notes/env_note.rb
scharfie-rails-footnotes-3.4.2 lib/rails-footnotes/notes/env_note.rb
rails-footnotes-linux-3.6.2 lib/rails-footnotes/notes/env_note.rb