Sha256: 103a5b9171b5dccd5b9cf6133f039755e94940d9c727d185019908e3e4d71560

Contents?: true

Size: 391 Bytes

Versions: 37

Compression:

Stored size: 391 Bytes

Contents

class EnvDumpPage < Page
  
  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
    %{<html><body><pre>#{ request.env.collect { |k,v| "#{k} => #{v}\n" } }</pre></body></html>}
  end
  
  def cache?
    false
  end

end

Version data entries

37 entries across 37 versions & 5 rubygems

Version Path
radiant-0.9.0.rc2 app/models/env_dump_page.rb
radiant-rc-0.9.0 app/models/env_dump_page.rb
radiant-0.8.1 app/models/env_dump_page.rb
radiant-0.6.0 app/models/env_dump_page.rb
radiant-0.6.1 app/models/env_dump_page.rb
radiant-0.6.2 app/models/env_dump_page.rb
radiant-0.6.3 app/models/env_dump_page.rb
radiant-0.6.4 app/models/env_dump_page.rb
radiant-0.6.5.1 app/models/env_dump_page.rb
radiant-0.6.5 app/models/env_dump_page.rb
radiant-0.6.6 app/models/env_dump_page.rb
radiant-0.6.7 app/models/env_dump_page.rb
radiant-0.6.9 app/models/env_dump_page.rb
radiant-0.6.8 app/models/env_dump_page.rb
radiant-0.7.0 app/models/env_dump_page.rb
radiant-0.7.1 app/models/env_dump_page.rb
radiant-0.8.0 app/models/env_dump_page.rb