|
Revision 405, 391 bytes
(checked in by jlong, 1 year ago)
|
merged changes from the mental branch into trunk r125:404
|
| Line | |
|---|
| 1 |
class EnvDumpPage < Page |
|---|
| 2 |
|
|---|
| 3 |
description %{ |
|---|
| 4 |
Instead of rendering a page in the normal fashion the Env Dump |
|---|
| 5 |
behavior will output all of the environment variables on the |
|---|
| 6 |
request. This is occasionally useful for debugging. |
|---|
| 7 |
} |
|---|
| 8 |
|
|---|
| 9 |
def render |
|---|
| 10 |
%{<html><body><pre>#{ request.env.collect { |k,v| "#{k} => #{v}\n" } }</pre></body></html>} |
|---|
| 11 |
end |
|---|
| 12 |
|
|---|
| 13 |
def cache? |
|---|
| 14 |
false |
|---|
| 15 |
end |
|---|
| 16 |
|
|---|
| 17 |
end |
|---|