Permalink
Browse files

don't understandx what the :app_class option was for, but it's appare…

…ntly unnecessary
  • Loading branch information...
1 parent 0795c3c commit 86d2abc236cd6e6c420d55ac0e8e6eaff3491e14 @telent committed Apr 26, 2011
Showing with 2 additions and 6 deletions.
  1. +1 −0 example/lib/file2.rb
  2. +1 −1 example/projectr-ex.rb
  3. +0 −5 lib/thin/prefork/project.rb
View
@@ -1,3 +1,4 @@
+
warn "loading file2"
View
@@ -23,7 +23,7 @@ class << self
h.load!
master=Thin::Prefork::Project.new :num_workers=>2,
-:project=>:hello,:app_class=>HelloWorld,
+:project=>:hello,:app=>HelloWorld.new,
:host=>"0.0.0.0",:port=>1974,:stderr=>$stderr
master.run!
@@ -6,12 +6,8 @@ def start!
def reload!
Projectr::Project[self.project].load!
end
- def app
- self.app_class.new
- end
end
def initialize(args)
- app_class=args.delete(:app_class)
project=args.delete(:project)
super
@@ -24,7 +20,6 @@ def initialize(args)
w.class_eval do
include WorkerHelper
end
- w.send(:define_method,:app_class,Proc.new {|| app_class })
w.send(:define_method,:project,Proc.new {|| project })
self.worker_class=w

0 comments on commit 86d2abc

Please sign in to comment.