Class | Footnotes::Notes::EnvNote |
In: |
lib/rails-footnotes/notes/env_note.rb
|
Parent: | AbstractNote |
# File lib/rails-footnotes/notes/env_note.rb, line 6 def initialize(controller) @env = controller.request.env.dup end
# File lib/rails-footnotes/notes/env_note.rb, line 10 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