gregbell/active_admin — Issue #923: Ignore default scope
Author: ka8725
Created: 2012-01-19 15:37:54+00:00
State: open

I have `User` model with `active` field with default scope and inactive scope:

```ruby
class User < ActiveRecord::Base
default_scope where(:active => true)
scope :inactive, where(:active => false)
end
```

I use scopes in ActiveAdmin:

```ruby
ActiveAdmin.register Startup do
scope :inactive
end
```

When I go to show/edit/destroy actions for inactive scope page fails because ActiveAdmin uses default scope and this record doesn't exist in it. So my question is: does ActiveAdmin has functionality which allows to prevent default scope or something like this that helps me?