Class: Trinidad::RailsWebApp

Inherits:
WebApp
  • Object
show all
Defined in:
lib/trinidad/web_app.rb

Overview

Rails web app specifics. Supports the same versions as jruby-rack !

Instance Attribute Summary

Attributes inherited from WebApp

#config, #default_config

Instance Method Summary collapse

Methods inherited from WebApp

#[], #add_context_param, #class_loader, #class_loader!, create, #default_deployment_descriptor, #default_web_xml, #define_lifecycle, #deployment_descriptor, #environment, #extensions, #generate_class_loader, #init_params, #initialize, #log_dir, #monitor, #public_root, #rack_listener, #rack_servlet, #reset!, #servlet, #solo?, #threadsafe?, #war?, #web_xml, #web_xml_context_param, #web_xml_filter?, #web_xml_listener?, #web_xml_servlet?, #work_dir

Constructor Details

This class inherits a constructor from Trinidad::WebApp

Instance Method Details

#context_listenerObject



313
# File 'lib/trinidad/web_app.rb', line 313

def context_listener; 'org.jruby.rack.rails.RailsServletContextListener'; end

#context_paramsObject



307
308
309
310
311
# File 'lib/trinidad/web_app.rb', line 307

def context_params
  add_context_param 'rails.env', environment
  add_context_param 'rails.root', '/'
  super
end