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