Sha256: 90bc992f2e7c4e49b6f945333515dcce35151e36b582fc3b7f2a58c87d3cec10
Contents?: true
Size: 440 Bytes
Versions: 3
Compression:
Stored size: 440 Bytes
Contents
class EnvDumpBehavior < Behavior::Base register "Env Dump" description %{ Instead of rendering a page in the normal fashion the Env Dump behavior will output all of the environment variables on the request. This is occasionally useful for debugging. } def render_page %{<html><body><pre>#{ @request.env.collect { |k,v| "#{k} => #{v}\n" } }</pre></body></html>} end def cache_page? false end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
radiant-0.5.0 | app/behaviors/env_behavior.rb |
radiant-0.5.1 | app/behaviors/env_behavior.rb |
radiant-0.5.2 | app/behaviors/env_behavior.rb |