samuelkadolph/simple-rails-multi-tenancy — Issue #1: NoMethodError when listing resource using rails 3.2.1
Author: jjnevis
Created: 2012-02-29 07:47:25+00:00
State: open

Using the same code, but updating the gemfile to use rails 3.2.1 I get the following error when I try to list the products:

```
NoMethodError in ProductsController#index

undefined method `merge' for #
Rails.root: /Users/jay/work/dev/simple-rails-multi-tenancy

Application Trace | Framework Trace | Full Trace
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'
```