Tracks 1.7 doesn't work with Thin
-
macournoyer
- State changed from new to open
That looks like #111 ActiveRecord session store not creating new records with Thin 1.2.4 and Rails...
Can you try w/ this patch and let me know if it fixes it?
diff --git a/lib/rack/adapter/rails.rb b/lib/rack/adapter/rails.rb index 8e5fd81..24c3c06 100644 --- a/lib/rack/adapter/rails.rb +++ b/lib/rack/adapter/rails.rb @@ -32,9 +32,7 @@ module Rack end def rack_based? - ActionController.const_defined?(:Dispatcher) && - (ActionController::Dispatcher.instance_methods.include?(:call) || - ActionController::Dispatcher.instance_methods.include?("call")) + Rails::VERSION::MAJOR >= 2 && Rails::VERSION::MINOR >= 3 && Rails::VERSION::TINY >= 2 end def load_application -
macournoyer
Oops, this patch should work for real now:
diff --git a/lib/rack/adapter/rails.rb b/lib/rack/adapter/rails.rb index 8e5fd81..24c3c06 100644 --- a/lib/rack/adapter/rails.rb +++ b/lib/rack/adapter/rails.rb @@ -32,9 +32,7 @@ module Rack end def rack_based? - ActionController.const_defined?(:Dispatcher) && - (ActionController::Dispatcher.instance_methods.include?(:call) || - ActionController::Dispatcher.instance_methods.include?("call")) + ::Rails::VERSION::MAJOR >= 2 && ::Rails::VERSION::MINOR >= 3 && ::Rails::VERSION::TINY >= 2 end def load_application -
macournoyer
- State changed from open to resolved
Should be fixed by http://github.com/macournoyer/thin/commit/b16e72ff779d9c077d2446266...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
