igrigorik/async-rails — Issue #21: async-rails works not well with connection pool
Author: johnson
Created: 2011-12-30 04:34:41+00:00
State: open

Set up a new async-rails project. Once reload! or new a model will try to get connection from connetion pool but get nil.

rails c
>>reload!
Reloading...
NoMethodError: You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.clear
from /Users/johnson/.rvm/gems/ruby-1.9.3-p0@e/gems/activerecord-3.1.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:144:in `clear_cache!'
......

>>User.new
NoMethodError: You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.[]
from /Users/johnson/.rvm/gems/ruby-1.9.3-p0@e/gems/activerecord-3.1.0/lib/active_record/base.rb:717:in `column_defaults'