lib/trinidad/rackup_web_app.rb in trinidad-0.9.0 vs lib/trinidad/rackup_web_app.rb in trinidad-0.9.1
- old
+ new
@@ -1,19 +1,16 @@
module Trinidad
class RackupWebApp < WebApp
- def add_init_params
+ def init_params
super
- add_parameter_unless_exist('rackup', rackup_script)
+ add_parameter_unless_exist 'rackup', rackup_script
+ @params
end
- def context_listener
- 'org.jruby.rack.RackServletContextListener'
- end
+ def context_listener; 'org.jruby.rack.RackServletContextListener'; end
def rackup_script
- IO.read(File.join(@app[:web_app_dir], @app[:rackup]))
+ File.read(File.join(web_app_dir, rackup))
end
-
- def provided_web_xml; 'rackup_web.xml'; end
end
end