radar/paranoia — pull request #86 by raszi (2013-11-14 13:00:57+00:00)
Title: Separate filter to a method

We have a use case where we add filterings on the default scope. We are using that default scope on the public pages but on the admin pages we want to use the unscoped view of the model without the deleted items. Right now we are not able to do that without duplicating the filter in our controller.

Example after pull request applied:

```ruby
class Example < ActiveRecord::Base
default_scope { where(available: true, visible: true).order(:plan_order) }
end

class ExampleController < ApplicationController
def index
Example.unscoped.without_deleted
end
end
```