spree/spree-multi-domain — pull request #25 by dwilkins (2012-10-14 18:18:03+00:00)
Title: Restrict SpreeMultiDomain::MultiDomainHelpers to just Spree controllers

When using ActiveAdmin with an application that integrates Spree with other functions, ActiveAdmin has a problem with Fixnum params that it does't know about which were injected by:

*multi_domain_helpers.rb* line 7:
`receiver.send :before_filter, :add_current_store_id_to_params`

The error details are:

```
RuntimeError in Admin/schools#index

Showing
*rvmpath*/activeadmin-0.5.0/app/views/active_admin/resource/index.html.arb
where line #1 raised:

I don't know what to do with Fixnum params: 3
Extracted source (around line #1):

1: insert_tag renderer_for(:index)
Rails.root: /home/dwilkins/source/Mayhem

Application Trace | Framework Trace | Full Trace
app/controllers/application_controller.rb:112:in `track_interaction'
Request

Parameters:

{"current_store_id"=>3,
"order"=>"id_desc"}
```

Instead of injecting `SpreeMultiDomain::MultiDomainHelpers` into the ApplicationController, I injected it into *just* the Spree controllers where it's needed. ActiveAdmin is happy now