samuelkadolph/simple-rails-multi-tenancy — comment on commit 3af10b8be90003699eabc9a09b7e3d6c0ba6c3e0
File:  line 0
By jjnevis:

Hi Samuel - trying to implement your strategy on rails 3.2.1 and getting this stack trace when trying to list products:
```
activerecord (3.2.1) lib/active_record/relation.rb:500:in `with_default_scope'
activerecord (3.2.1) lib/active_record/relation.rb:166:in `exec_queries'
activerecord (3.2.1) lib/active_record/relation.rb:159:in `block in to_a'
activerecord (3.2.1) lib/active_record/explain.rb:40:in `logging_query_plan'
activerecord (3.2.1) lib/active_record/relation.rb:158:in `to_a'
activerecord (3.2.1) lib/active_record/relation/finder_methods.rb:159:in `all'
activerecord (3.2.1) lib/active_record/querying.rb:5:in `all'
app/controllers/products_controller.rb:5:in `index'
```
You can recreate easily in your example code by upgrading the gem file (I am also using sqlite):
gem 'rails', '3.2.1'
```
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
```
Do you have any idea how to fix this?
Many thanks