adhearsion/activerecord-wrap-with-connection — Issue #1: undefined method `find_target' with AR 3.1.1
Author: fwoeck
Created: 2011-10-14 13:52:50+00:00
State: open

Hi! With ruby 1.9.3-prev1 and AR3.1.1 I get the following error on startups:

```
DEPRECATION WARNING: ActiveRecord::Associations::AssociationCollection is deprecated! Use ActiveRecord::Associations::CollectionProxy instead. (called from require at /opt/rvm/gems/ruby-1.9.3-preview1@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:68)
/opt/rvm/gems/ruby-1.9.3-preview1@adhearsion/gems/activesupport-3.1.1/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method': undefined method `find_target' for class `ActiveRecord::Associations::CollectionProxy' (NameError)
from /opt/rvm/gems/ruby-1.9.3-preview1@adhearsion/gems/activesupport-3.1.1/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method_chain'
from /opt/rvm/gems/ruby-1.9.3-preview1@adhearsion/gems/activerecord-wrap-with-connection-0.0.2/lib/activerecord-wrap-with-connection.rb:17:in `block (3 levels) in '
from /opt/rvm/gems/ruby-1.9.3-preview1@adhearsion/gems/activesupport-3.1.1/lib/active_support/deprecation/proxy_wrappers.rb:24:in `class_eval'
from /opt/rvm/gems/ruby-1.9.3-preview1@adhearsion/gems/activesupport-3.1.1/lib/active_support/deprecation/proxy_wrappers.rb:24:in `method_missing'
from /opt/rvm/gems/ruby-1.9.3-preview1@adhearsion/gems/activerecord-wrap-with-connection-0.0.2/lib/activerecord-wrap-with-connection.rb:16:in `block (2 levels) in '
from /opt/rvm/gems/ruby-1.9.3-preview1@adhearsion/gems/activerecord-wrap-with-connection-0.0.2/lib/activerecord-wrap-with-connection.rb:15:in `each'
```

Do you have a tip here?
Thanks in advance,
-Frank