ianwhite/pickle — Issue #35: both mongoid and AR - suddenly check tablenames from AR first 
Author: kalabiyau
Created: 2011-11-09 08:03:05+00:00
State: open

I have a model

```ruby
class Lease
include Mongoid::Document
include Mongoid::Timestamps
embeds_many :tenants
end
```
And this scenario step in cuke

```cucumber
Given a lease exists with id: 42
```

When in one project i have AR + Mongoid
Pickle will require AR at top, and does not respect model to create definitions. It will check tablenames from AR not from Mongoid.
So i will get AR record - pickle-0.4.10/lib/pickle/world.rb:13:in `capture_model' - in my case - not implemented (from sqlserver-adapter). Table with corresponding name does not exist.

```
cucumber (1.1.1)
cucumber-rails (1.2.0)
cucumber (>= 1.1.1)
mongo (1.4.1)
mongoid (2.3.3)
mongo (~> 1.3)
pickle (0.4.10)
cucumber (>= 0.8)
```
The only way to handle for me is disable
AR require in pickle world

I assume that project can use only one database type. Am i wrong ?