Module: Trinidad::Sandbox::Helpers::Context
- Included in:
- ApplicationContext
- Defined in:
- lib/trinidad_sandbox_extension/app/helpers/sandbox.rb
Instance Method Summary collapse
Instance Method Details
#context_not_found(name) ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'lib/trinidad_sandbox_extension/app/helpers/sandbox.rb', line 35 def context_not_found(name) flash[:warning] = "application not found: #{name}" $servlet_context.log "application not found: #{name}" respond_to do |wants| wants.html { redirect sandbox_context.path } wants.xml { status 404 } end end |
#host ⇒ Object
44 45 46 |
# File 'lib/trinidad_sandbox_extension/app/helpers/sandbox.rb', line 44 def host $servlet_context.getAttribute('tomcat_host') end |
#sandbox_context ⇒ Object
31 32 33 |
# File 'lib/trinidad_sandbox_extension/app/helpers/sandbox.rb', line 31 def sandbox_context @sandbox_context ||= $servlet_context.getAttribute('sandbox_context') end |